Hello,
I've been struggling with this one for a couple of weeks so I'm asking for help here. Basically, I'm trying to create an SLI function to publish a single simple message to the MQTT broker from the TXT. I already have the development environment set up and have succesfully created numerous SLI functions. I'm very well versed in the MQTT protocol and have developed multiple MQTT apps in both Python and Java, but the TXT is so constrained and makes things very difficult for me.
Would anyone be able to share some basic MQTT publish code for the TXT? Or even just offer some guidance? I tried studying the officially used MQTT libraries for days but the documentation is downright atrocious to navigate. Anything helps.
Thanks in advance,
Andrew.
MQTT enabled SLI function for the TXT Controller
Forumsregeln
Bitte beachte die Forumsregeln!
Bitte beachte die Forumsregeln!
Re: MQTT enabled SLI function for the TXT Controller
Dear Andrew,
may you are aware of following link?
https://github.com/fischertechnik/txt_t ... terface.md
and the source code:
https://github.com/fischertechnik/txt_t ... c/main.cpp
may you are aware of following link?
https://github.com/fischertechnik/txt_t ... terface.md
and the source code:
https://github.com/fischertechnik/txt_t ... c/main.cpp
Re: MQTT enabled SLI function for the TXT Controller
Be aware of the online 5sec SLI bug:
I published this bug several years ago.
The RoboPro runtime terminates an SLI process if it is idle for 5 seconds or more.
A " SLI dummy" KeepAwake function call operation in RoboPro that is repeated within every 5 sec is sufficient as a work around.
See also: https://github.com/fischertechnik/txt_demo_ROBOPro_SLI
I published this bug several years ago.
The RoboPro runtime terminates an SLI process if it is idle for 5 seconds or more.
A " SLI dummy" KeepAwake function call operation in RoboPro that is repeated within every 5 sec is sufficient as a work around.
See also: https://github.com/fischertechnik/txt_demo_ROBOPro_SLI