Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems transfering sonoff MQTT example for ESP32 #46

Open
meineid-git opened this issue Sep 27, 2019 · 2 comments
Open

Problems transfering sonoff MQTT example for ESP32 #46

meineid-git opened this issue Sep 27, 2019 · 2 comments

Comments

@meineid-git
Copy link

Hi,
first I have to say that I am impressed by cforth and all the effort you put into it and the fact that you are sharing this.

I try to transfer the \ESP8266\sonoff MQTT example from ESP8266 to ESP32, but it seems lacking some binding to certain c-routines like tcp-poll (showing up in \ESP8266\tcp-new.fth) with your release version of 2017.

You may say, that I have to recompile the binaries including these routines, but I must admit that:

  • I am not sure whether I can do this (or am I completely on the wrong route?)
  • I do not want to do it, because it will lead me deeper into a jungle of further obstacles, taking me further away from my actual goal
  • I wanted to ask, if you could eventually provide a new release with that binding, if you consider this to be a useful for other users as well

Your feedback is very much appreciated!

@MitchBradley
Copy link
Owner

MitchBradley commented Sep 27, 2019

The TCP interface is different for ESP32, due to the fact that ESP8266 requires a strict callback approach whereas ESP32 can support a more conventional socket interface.When I have a chance I will make an MQTT version for ESP32. It will probably be sometime next week since I am traveling and do not have access to an ESP32 for testing

@MitchBradley
Copy link
Owner

Try this commit 6781153 . src/app/esp32/mqtt-test.fth shows how to use MQTT on ESP32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants