Search found 568 matches

by PeterR
Sun Nov 08, 2020 7:23 pm
Forum: General Discussion
Topic: using 1000+ ESP32 units with Google Home Assistant
Replies: 3
Views: 370

Re: using 1000+ ESP32 units with Google Home Assistant

IMHO you should have tried this idea with one ESP32 before you went ahead and bought 1000+. Lol. And I thought it was SPRITE who was harsh. A good net security man will cost you. A bad security man will cost you as well, just a little latter when you loose your brand. but it ended up having serious...
by PeterR
Sun Nov 08, 2020 12:09 am
Forum: General Discussion
Topic: ESP32 Ints or Doubles to Strings
Replies: 8
Views: 1746

Re: ESP32 Ints or Doubles to Strings

Nope, long time back. Not sure how true the following is, but: https://www.thinkage.ca/gcos/expl/c/lib/gcvt.html But gcvt is definitetly 'left field'. Stick with sprintf or a stream. Guess you are academic/hobby or you would have gone with the earlier working suggestions already? Not sure why you wa...
by PeterR
Mon Nov 02, 2020 11:19 pm
Forum: ESP-IDF
Topic: WS frame is not properly masked.
Replies: 1
Views: 171

Re: WS frame is not properly masked.

The answer is: Drop the frame & connection - you cannot recover. Which is a shame as this seems to fly in the face of a websocket's utility. In my experience the issue seems related to the ESP32 client sending MQTT packets over multiple WS frames and at some point failing on a malloc. See: https://w...
by PeterR
Mon Nov 02, 2020 6:28 pm
Forum: General Discussion
Topic: ESP32 mqtt client ws_read() failure
Replies: 18
Views: 2626

Re: ESP32 mqtt client ws_read() failure

Hi, I think that the patch fixes the fragmentation issue however there are other issues behind this. (1) On occasion I get: httpd_ws: httpd_ws_recv_frame: WS frame is not properly masked This error is generated from my internal MQTT server & (I believe) only as a result of my own MQTT client's PUBLI...
by PeterR
Thu Oct 29, 2020 10:24 am
Forum: ESP-IDF
Topic: WS frame is not properly masked.
Replies: 1
Views: 171

WS frame is not properly masked.

IDF: SHA-1: 8bc19ba893e5544d571a753d82b44a84799b94b1 Using the ESP IDF web socket server. Occassionally I get the above warning. Looking at the code: if (masked) { if (httpd_recv_with_opt(req, (char *)mask_key, sizeof(mask_key), false) <= 0) { ESP_LOGW(TAG, LOG_FMT("Failed to receive mask key")); re...
by PeterR
Wed Oct 28, 2020 11:39 pm
Forum: ESP-IDF
Topic: Can Bus (TWAI) peripheral receive handling
Replies: 1
Views: 173

Re: Can Bus (TWAI) peripheral receive handling

Complete.

Code: Select all

esp_err_t twai_receive(twai_message_t *message, TickType_t ticks_to_wait)
Clue is:

Code: Select all

twai_message_t 
rather than

Code: Select all

uint8_t *
by PeterR
Tue Oct 27, 2020 6:52 pm
Forum: General Discussion
Topic: ESP32 wireless capabilities for guitar recording
Replies: 1
Views: 221

Re: ESP32 wireless capabilities for guitar recording

Hi, Why worry about latency? Open a connection based socket (if Wifi then say TCP) & stream. Now you only need to worry about average throughput - assuming you have some seconds of buffering ESP side. Live stream probably won't work well unless you buffer client side and client plays x seconds after...
by PeterR
Tue Oct 27, 2020 10:32 am
Forum: General Discussion
Topic: ESP32 mqtt client ws_read() failure
Replies: 18
Views: 2626

Re: ESP32 mqtt client ws_read() failure

Thanks, that looks good. I will comment again in a couple of weeks when it has been bedded in. Had a couple of whitespace issues fixed with: git apply --whitespace=fix ws.diff.txt EDIT: PS - would you describe the change please? You modified the ESP MQTT client but packet to frame may be (0..1 : 0.....
by PeterR
Thu Oct 22, 2020 11:30 pm
Forum: ESP-IDF
Topic: Peripherals not being installed in driver folder
Replies: 1
Views: 114

Re: Peripherals not being installed in driver folder

twai was a name change (as I understand it) because CAN is a trademar 4.1 is CAN, not twai. Think twai is bleeding edge 4.3? Regardless; by any other name a TWAI/CAN driver would smell so .... please check that your TWAI/CAN named driver address the ESP32 silicon errata issues and/or overflow issues...
by PeterR
Thu Oct 22, 2020 10:49 am
Forum: General Discussion
Topic: ESP32 mqtt client ws_read() failure
Replies: 18
Views: 2626

Re: ESP32 mqtt client ws_read() failure

@ESP-Marius

Hi,
My timeout logic is not perfect. I still get:

Code: Select all

TRANSPORT_WS: Error read data
TRANSPORT_WS: Error reading payload data
Would you please create your patch for my SHA 84b51781c80740fda92784dafcfc96c13b0d8b66 ?

Go to advanced search