Skip to content

Instantly share code, notes, and snippets.

@cominging
cominging / get-mqtt-params.go
Last active November 22, 2018 17:57
Convert connection string to SAS token for MQTT connection in EasyBuilder Pro. Executable (Win32) can be obtained at: https://www.dropbox.com/s/w0fd7msqcc15cj7/get-mqtt-params.zip
package main
import (
"crypto/hmac"
"crypto/sha256"
"encoding/base64"
"fmt"
"log"
"os"
"regexp"