MitchBradley / cforth

Mitch Bradley's CForth implementation
Other
154 stars 41 forks source link

Adding stuff etc to esp8266-rtos #70

Open andrewtholt opened 3 years ago

andrewtholt commented 3 years ago

Hi,

I have found time to look at cforth again and the new goodness that you have added.

Given that it's now on top of Esprissif's extended FreeRTOS I was looking at adding words for things like MQTT and looking in to lower power modes.

Not wanting to create a parallel implementation of these things I was wondering what your plans were for features.

Regards, Andrew

MitchBradley commented 3 years ago

I'm not working on cforth at this instant so anything you do in the near future is not likely to be redundant.

The MQTT implementation in src/app/esp32/mqtt.fth is likely to work in esp8266-rtos, perhaps unmodified.

Let me know what you discover, and provide PRs for any exciting new features that you develop.

andrewtholt commented 3 years ago

Hi,

I'm hoping to make a start sometime over the christmas break. I'll kep you posted .

Regards, ANdrew

On Thu, 17 Dec 2020 at 17:16, Mitch Bradley notifications@github.com wrote:

I'm not working on cforth at this instant so anything you do in the near future is not likely to be redundant.

The MQTT implementation in src/app/esp32/mqtt.fth is likely to work in esp8266-rtos, perhaps unmodified.

Let me know what you discover, and provide PRs for any exciting new features that you develop.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MitchBradley/cforth/issues/70#issuecomment-747577612, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYVWSNOIV6BZNTUAENKJADSVI4GZANCNFSM4U72QHPA .

Jos-Ven commented 3 years ago

Hi, In the past I reported that I could not connect to my router when it was set to the '11N protocol only' in my router. After adding 'esp_wifi_set_protocol' in ~/cforth/src/app/esp8266-rtos/sdk_src/main/interface.c it works. Here is what I did, perhaps it could be better:

if (strlen(password)) {
    wifi_config.sta.threshold.authmode = WIFI_AUTH_WEP;

// When I set in my router to 11N ONLY then: esp_wifi_set_protocol(ESP_IF_WIFI_STA, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N); // Works // esp_wifi_set_protocol(ESP_IF_WIFI_STA, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G); // Fails } Regards, Jos

MitchBradley commented 3 years ago

Please read this https://www.section.io/engineering-education/wep-encryption/

Jos-Ven commented 3 years ago

Hi, Thanks for the hint, I know about the security problem of web Encryption. It is off in my router. Despite that fact I am able to connect to my router using WPA2-PSK. It seems the line WIFI_AUTH_WEP is overruled. Also note that it I did not change that line in interface.c.

Kind regards, Jos