MitchBradley / cforth

Mitch Bradley's CForth implementation
Other
146 stars 38 forks source link

Problems transfering sonoff MQTT example for ESP32 #46

Open meineid-git opened 4 years ago

meineid-git commented 4 years ago

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:

Your feedback is very much appreciated!

MitchBradley commented 4 years ago

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 commented 4 years ago

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