Bluemix IoT NodeJS code, missing MQTT folder

三世轮回 提交于 2019-12-25 06:58:11

问题


I am new to Bluemix and IoT. Earlier I replicated Parking Lot App as shown in the document on link. that time the app worked fine. Now when i try to replicate the same app again I see the code structure is changed. the "mqtt" folder which was there previously is missing/omitted from the code. I am unable to find the callbacks which were there in files under "mqtt" folder. I checked the above mentioned doc if its modified, but it is still the old doc which is there since March.

can someone guide me on this?

folder structure before :

folder stucture after :


回答1:


IoT-Workbench now uses new improved code generation scheme for node.js. Older applications that used the old code the workbench will still use the old scheme and will not be affected. The document of the parking finder sample will be updated in the next few days for reflect the changes.

The new scheme introduce many improvements like: -Simpler handling of mqtt events and commands, -Simpler handling of http messages - More options to add user code




回答2:


We updated the Node.js tutorial - please access it via the all solutions page (the page that opens when you launch the service) Let us know if you have any feedback.



来源:https://stackoverflow.com/questions/37108897/bluemix-iot-nodejs-code-missing-mqtt-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!