Search found 591 matches

by PeterR
Thu Nov 12, 2020 7:44 pm
Forum: General Discussion
Topic: ESP32 Ints or Doubles to Strings
Replies: 8
Views: 2612

Re: ESP32 Ints or Doubles to Strings

Lol I would disagree in the sense 'now'. I am a real (as in old school) embedded programmer and firmly believe that hardware engineers (& other lower life forms looking to improve themself) find reasons to program ;). Good software engineers however look for ways not to program. We know what might g...
by PeterR
Mon Nov 09, 2020 1:12 am
Forum: General Discussion
Topic: Whit tou use uint8_t buffer to receive uart data?
Replies: 5
Views: 787

Re: Whit tou use uint8_t buffer to receive uart data?

https://stackoverflow.com/questions/40679801/difference-between-sizeofchar-and-sizeofchar/40679845 I guess the answer is one of symantics, that the data format is unknown, a char * suggests a string etc. A char is the same size as unit8_t (according to above). Both uses seem somewhat flawed IMHO bu...
by PeterR
Mon Nov 09, 2020 12:53 am
Forum: General Discussion
Topic: What ESP32-S3 brings and what we can talk about ESP32-S3 and few (new ) feat.
Replies: 9
Views: 2457

Re: What ESP32-S3 brings and what we can talk about ESP32-S3 and few (new ) feat.

So, marketing & warmers aside. When is the the official product description release? Is there one already or are we in marketing 'chum' mode? A cynic. EDIT: Guess a little unreasonable to ask above. Will settle with 'is there an official feature statement and/or market feature study'? & if so where ...
by PeterR
Sun Nov 08, 2020 7:23 pm
Forum: General Discussion
Topic: using 1000+ ESP32 units with Google Home Assistant
Replies: 3
Views: 698

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: 2612

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: 320

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: 3701

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: 320

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: 404

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: 402

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...

Go to advanced search