[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.

TcMenu and MQTT RSS feed
Forum Index » tcMenu Remote API
Author Message
mjd


Joined: Nov 14, 2022
Messages: 2
Offline
Hi Dave,

Been working with TcMenu and wanted to know your plans and thoughts on implementing MQTT for remote control? My interest is strictly with ESP32 and 8266.

I've got the wifioled example running with encoder and it is works very well. My issue is that i need to communicate with remote nodes who run servos. It's all coordinated through nodered via mqtt messaging.

i'm not sure of the right way to even think about adding MQTT capability as you have already tackled so much such as the wifi, tagval protocol, connection handling, remote menu items and so on.

Please let me know your thoughts on how this might best fit into TcMenu.

Best,

Mike
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
I imagine it would be relatively [edit] trivial to integrate Tc menu with MQTT. There is a longer term plan to try and build plugins for third party IoT solutions that are supported out the box

But even without that there are people out there that have integrated libraries themselves. All the building blocks are there.
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
Sorry busy week this week. In terms of the how.

You’d probably start a task manager task that watches for items being updated and sends to your endpoint. You can use the menu item remote change flags to determine that. Take a look at MenuItem.h in the library.

For incoming state changes you’d just change the value of the menu item. You can determine the item then apply the change. All the value setters have an optional silent flag that prevents the callback if needed.
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
Simplest example to look at for this would probably be the simhub example packaged with the library.
mjd


Joined: Nov 14, 2022
Messages: 2
Offline
Dave,

Thank you very much for the insights. I will take a look at the simhub example.

Mike
 
Forum Index » tcMenu Remote API
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.