eclipse / paho.mqtt-sn.embedded-c

Paho C MQTT-SN gateway and libraries for embedded systems. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
313 stars 179 forks source link

WIP: UDP6 Fixes/Improvements #272

Open ajlennon opened 11 months ago

ajlennon commented 11 months ago

I am a bit unclear about the UDP6 multicast port as it's used for local binding and there seems to be an assumption that the same value should be used for remote port but I don't believe it was ever set.

ajlennon commented 11 months ago

I see the port is supposed to be set from the string but it seems to be set incorrectly

ajlennon commented 11 months ago

I've probably not fixed this the right way. The problem seems to be the UDP6

void SensorNetAddress::setAddress(struct sockaddr_in6 *IpAddr)

is called not

int SensorNetAddress::setAddress(string* data)

And thus the port isn't bring set (?)