Search found 3 matches

by Blip!
Sun Feb 21, 2021 10:07 pm
Forum: ESP32 boards
Topic: BLE scan() not returning complete advertisement payload
Replies: 2
Views: 1991

Re: BLE scan() not returning complete advertisement payload

Based on comment and great tip from Emil at stackoverflow, the solution is to set parameter 'active' in BLE.gap_scan(..., active=True) to receive scan responses in the results. This makes the irq callback receive 2 separate messages with different adv_types: 0x00 - ADV_IND - containing the advertisi...
by Blip!
Sun Feb 21, 2021 5:25 pm
Forum: ESP32 boards
Topic: BLE scan() not returning complete advertisement payload
Replies: 2
Views: 1991

BLE scan() not returning complete advertisement payload

020106111695fe30585b05015646d238c1a4280100 020106111695FE30585B05015646D238C1A42801000B094C5957534430334D4D43 BLE Scan() not returning complete advertisement payload Summary: Micropython Bluetooth BLE scan() does not return the complete advertisement payload, specifically missing "Complete Local Nam...
by Blip!
Sun Jan 24, 2021 6:11 pm
Forum: ESP32 boards
Topic: example BLE micropython
Replies: 9
Views: 33357

Re: example BLE micropython

Good and simple sample, @HexVitor. Easy to follow! There are 3 bugs, however. The last string compare put me off a little, until I realized the [:-1] stripping did not remove '\r' (aka carriage return). .strip() is a better way of removing blanks... elif event == 4: ... if received == 'blue_led': .....