I'm using a simple MQTT init. I want to send as the clientId the Mac Address of an ESP32.
I cannot find the way that the clientId is sent as plain text. On the other end, I have mosca mqtt broker, that when the client connects it just gives me a strange encoding for the client Id
Is this a problem with the client or the broker?
B4X:
mqtt.Initialize2(wifiSocket.Stream, "api.***.com", 82, bc.HexFromBytes(MacAddress), "mqtt_MessageArrived", "mqtt_Disconnected")"]
Sub MacAddress() As Byte()
RunNative("getMac", Null)
Return MacArray
End Sub
#if C
void getMac(B4R::Object* u) {
WiFi.macAddress((Byte*)b4r_main::_macarray->data);
}
#end if
I cannot find the way that the clientId is sent as plain text. On the other end, I have mosca mqtt broker, that when the client connects it just gives me a strange encoding for the client Id
Is this a problem with the client or the broker?