Closed ctshh closed 5 years ago
@ctshh,
Thanks for report this. Solved in https://github.com/whitecatboard/Lua-RTOS-ESP32/commit/e6dd5c7d218fcd30569addc54fce7fb3a78ee4b5.
I've flashed the current version (80412d18bd82a8f01056e2e688a0aef30cdc2bec), uplaoded the attached sketch, yet I still get a timeout arror. Do I have to build the current firmware myself or should this be automatic?
Err. no close! Sorry...
Connection to IBM Watson IoT Quickstart fails, too. The "ID" MQTT parameter is not supported (which ahs nothing to do with the connection failing, it's just something we might want to take into consideration that is exists. If teh ID field would be supported, a very easy Quickstart with the IBM platform could be sketched as a nice example.
@ctshh,
Yes, the best way to ensure to test last changes is to build Lua RTOS by yourself. It may be a delay between publish an update to github, and the official Lua RTOS builds that can be flashed with the wcc tool.
About IBM Watson, can you provide your sample code, with the credentials you use? . You can provide temporary credentials, or send me the credentials by private message to jolive@whitecatboard.org. This should be great, and faster than create a IBM Watson account.
https://quickstart.internetofthings.ibmcloud.com/
can be used without credentials:
https://quickstart.internetofthings.ibmcloud.com/#/device/whitecat/sensor/
shows what mosquitto_pub -h quickstart.messaging.internetofthings.ibmcloud.com -p 1883 -t "iot-2/evt/helloworld/fmt/json" -i "d:quickstart:mosquitto:whitecat" -m '{"helloworld": 12}'
on the console writes; mosquitto_sub -h quickstart.messaging.internetofthings.ibmcloud.com -p 1883 -i "a:quickstart:3141592" -t "iot-2/type/mosquitto/id/whitecat/evt/helloworld/fmt/json"
shows the output on the commandline.
@ctshh,
Issue closed, as we don't have any feedback.
The preamble:
Now, setting up an MQTT connection works, opening the connection leads to a timeout:
Same goes for a secure MQTT connection:
Any idea why my MQTT connection is failing so miserably? The same connection from my notebook works fine.
Also and on a sidenote, when using the WebIDE and configuring the MQTT session, "Get data" does get the server info, yet no suername or password shows up. Any ideas on this?
Thank you for any help, Christian