telefonicaid / fiware-device-simulator

Simulator of FIWARE-compatible devices (UltraLight 2.0, JSON & NGSIv2)
GNU Affero General Public License v3.0
8 stars 13 forks source link

fix mqttClient.publish invocation when mqttClient is connected #71

Closed asainzp closed 4 years ago

asainzp commented 4 years ago

Fix bug when sending updates using MQTT protocol when mqttClient is connected (2nd update and following updates) there is a little bug in the invocation of mqttClient.publish : the payload is formatted always in UltraLight

fgalan commented 4 years ago

Thanks for the contribution!

It would be great to add an entry in the CHANGES_NEXT_RELEASE file about the fix (that file is used to generate release notes from time to time). Something like this for instance:

- Fix: bug causing UL payload format always used in MQTT transport
asainzp commented 4 years ago

Fermin, done!