DAC-Of-Purdue / iot-dashboard

A dashboard repo of IoT in digital agriculture
http://66.253.158.154:8005/
0 stars 0 forks source link

Change MQTT library from ngx-mqtt to mqtt.js #6

Closed tame0001 closed 1 year ago

tame0001 commented 1 year ago

ngx-mqtt development might be on hold. There are some issues reports and dependency issues with Angular 15. Moreover, Angular 16 has been released. There might be more issues with future issues. If ngx-mqtt would not resume development, migrating to other active mqtt libraries is better. mqtt.js is one of the most popular mqtt in Javascript. There might be some challenges to integrate with Typescript. This section could be a good starting point.

tame0001 commented 1 year ago

5 With Angular 16, ngx-mqtt 9.0.5 won't work.

tame0001 commented 1 year ago

The issue has been discussed with the package developer here. Wait to see the conclusion.

tame0001 commented 1 year ago

Found that mqtt-brower works behind the scene of ngx-mqtt. It provides direct interface to mqtt.js. This could be a potential solution.