Search found 45 matches

by RobinC
Thu Aug 03, 2017 5:56 pm
Forum: ESP-IDF
Topic: How to determine SSID length from wifi_ap_record_t?
Replies: 1
Views: 4139

Re: How to determine SSID length from wifi_ap_record_t?

Ok, I'm assuming that since there was no response that this is a design issue in esp-idf. I'll submit an issue to the github project.

Robin
by RobinC
Mon Jul 31, 2017 6:35 pm
Forum: ESP-IDF
Topic: UART Timeout doesn't work
Replies: 3
Views: 7268

Re: UART Timeout doesn't work

I had the same issue and found (though experimentation) that 100 / portTICK_RATE_MS was the shortest timeout that worked consistently for me. This implementation is somewhat broken for the way I've normally processed uart data in embedded apps. The call to uart_read_bytes() returns when either the l...
by RobinC
Sun Jul 30, 2017 4:10 pm
Forum: ESP-IDF
Topic: How to determine SSID length from wifi_ap_record_t?
Replies: 1
Views: 4139

How to determine SSID length from wifi_ap_record_t?

The IEEE wifi standard ( standards.ieee.org/getieee802/download/802.11-2012.pdf ) defines SSIDEncoding field. It can be UNSPECIFIED (for arbitrary data) or UTF8. That means that the SSID may contain NULL ('\0') characters. It also specifies that the SSID may be 0-32 octets in length. The typedef str...
by RobinC
Sat Jul 29, 2017 12:21 pm
Forum: ESP-IDF
Topic: SYSTEM_EVENT_WIFI_READY not invoked
Replies: 4
Views: 7698

Re: SYSTEM_EVENT_WIFI_READY not invoked

Great research! I looked through *almost* all of the docs and code... :)

Robin
by RobinC
Fri Jul 28, 2017 6:37 pm
Forum: ESP-IDF
Topic: SYSTEM_EVENT_WIFI_READY not invoked
Replies: 4
Views: 7698

Re: SYSTEM_EVENT_WIFI_READY not invoked

The handler is registered before init call. I see the SYSTEM_EVENT_STA_START event (and all of the other events that I should see) but never see the SYSTEM_EVENT_WIFI_READY. The event handler starts like: static esp_err_t event_handler(void *ctx, system_event_t *event) { switch(event->event_id) { ca...
by RobinC
Fri Jul 28, 2017 2:39 pm
Forum: ESP-IDF
Topic: SYSTEM_EVENT_WIFI_READY not invoked
Replies: 4
Views: 7698

SYSTEM_EVENT_WIFI_READY not invoked

I was looking for an event that would trigger wifi readiness for a call to esp_wifi_scan_start(). I thought maybe the event SYSTEM_EVENT_WIFI_READY would be useful. Unfortunately, that event doesn't seem to be invoked or used. Perhaps after esp_wifi_init() returns, the wifi subsystem is ready? Shoul...
by RobinC
Thu Jul 13, 2017 7:24 pm
Forum: ESP-IDF
Topic: BLE: cannot advertise 16bit and 128bit UUIDs (or more than one 128bit) simultaneously
Replies: 5
Views: 9059

Re: BLE: cannot advertise 16bit and 128bit UUIDs (or more than one 128bit) simultaneously

No worries. How will your classes handle the case (related to this thread) where someone issues both 16bit and 128bit (or more than one 128bit) UUID for advertising?

Robin
by RobinC
Thu Jul 13, 2017 1:28 pm
Forum: ESP-IDF
Topic: BLE: cannot advertise 16bit and 128bit UUIDs (or more than one 128bit) simultaneously
Replies: 5
Views: 9059

Re: BLE: cannot advertise 16bit and 128bit UUIDs (or more than one 128bit) simultaneously

Hi Neil. Thanks for a long explanation that you only have 31 bytes. :) I'm hoping for a response from Espressif on the choice of ignoring the 128bit UUID when there are 16bit UUID(s) present, even when the 128bit UUID comes first in the list. There is a lot of technical knowledge that one needs to i...
by RobinC
Wed Jul 12, 2017 10:35 pm
Forum: ESP-IDF
Topic: BLE: cannot advertise 16bit and 128bit UUIDs (or more than one 128bit) simultaneously
Replies: 5
Views: 9059

BLE: cannot advertise 16bit and 128bit UUIDs (or more than one 128bit) simultaneously

I have an app that has both 16bit standard service UUIDs and custom 128bit service UUIDs (in separate profiles). I can advertise multiple 16bit UUIDs or one and only one 128bit UUID. Both 16bit and 128bit UUIDs cannot be advertised at the same time. If there is a mix, the 128bit UUID is ignored. Is ...
by RobinC
Thu Jul 06, 2017 7:50 pm
Forum: ESP-IDF
Topic: [Video] BLE, C++, Notifications and Web Bluetooth
Replies: 4
Views: 8991

Re: [Video] BLE, C++, Notifications and Web Bluetooth

While testing my gatt server code, I noticed that it allows me to send the notifications even when they are not requested by the client. I now have to manually keep track of whether the client asked or not. I was looking for code samples for your video and didn't see any. Do you make these available...