Incomplete Advertising packet #9337
Unanswered
bbakerzzz
asked this question in
Using MicroPython
Replies: 3 comments 10 replies
-
You may need to enable active scanning (See docs for |
Beta Was this translation helpful? Give feedback.
5 replies
-
If you use aioble it will join these up for you. |
Beta Was this translation helpful? Give feedback.
4 replies
-
How about BLE scan and WiFi sta - at the same time? For example scan BLE after sending to MQTT result. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all Thanks for all the help in advance.
I am kind of new to micropython
My question/issue is when I use the LightBlue app on my phone I can see the following advertisement packet.
'''0201061AFF4C000215FDA50693A4E24FB1AFCFC6EB0764782500010002D80809616C6C77696E7311160318D0D5E036CE29000100020603E81B0000000000'''
When I use the following code snippet
'''def handle_scan(ev, data):
addr_type, addr, adv_type, rssi, adv_data = data
addr = hexlify(addr, ":").decode()
adv_data = hexlify(adv_data, ":").decode()
print(addr, adv_data)'''
I get
'''02:01:06:1a:ff:4c:00:02:15:fd:a5:06:93:a4:e2:4f:b1:af:cf:c6:eb:07:64:78:25:00:01:00:02:d8'''
Which match the begining of the packet.
'''0201061AFF4C000215FDA50693A4E24FB1AFCFC6EB0764782500010002D8'''
Which seems to be only part of the packet. What do I need to do to change this behavior?
I am using the following setup
ESP32-wroom-32u
1.19.1 of micropython
The sending device is an Allwins Ibeacon
Again thanks for the help
Beta Was this translation helpful? Give feedback.
All reactions