Closed michaelhwhitten closed 5 years ago
I put in debug as requested. Easier to see the scans returning zero here though:
ets Jun 8 2016 00:22:57
15:13:51.832 ->
15:13:51.832 -> rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
15:13:51.832 -> configsip: 0, SPIWP:0xee
15:13:51.832 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
15:13:51.832 -> mode:DIO, clock div:1
15:13:51.832 -> load:0x3fff0018,len:4
15:13:51.832 -> load:0x3fff001c,len:952
15:13:51.832 -> load:0x40078000,len:6084
15:13:51.832 -> load:0x40080000,len:7936
15:13:51.832 -> entry 0x40080310
Starting BT scan
Finished BT scan. Found devices: 23
WiFi event: SYSTEM_EVENT_WIFI_READY
15:13:57.877 -> WiFi event: SYSTEM_EVENT_STA_START
WiFi event: SYSTEM_EVENT_SCAN_DONE
WiFi event: SYSTEM_EVENT_STA_CONNECTED
WiFi event: SYSTEM_EVENT_STA_GOT_IP, IP address: 172.21.199.208
15:14:01.753 -> WiFi event: SYSTEM_EVENT_STA_STOP
15:14:01.753 -> WiFi event: SYSTEM_EVENT_STA_STOP
Starting BT scan
Finished BT scan. Found devices: 0
15:14:07.784 -> WiFi event: SYSTEM_EVENT_WIFI_READY
15:14:07.784 -> WiFi event: SYSTEM_EVENT_STA_START
WiFi event: SYSTEM_EVENT_SCAN_DONE
WiFi event: SYSTEM_EVENT_STA_CONNECTED
15:14:11.840 -> WiFi event: SYSTEM_EVENT_STA_GOT_IP, IP address: 172.21.199.208
WiFi event: SYSTEM_EVENT_STA_STOP
15:14:11.887 -> WiFi event: SYSTEM_EVENT_STA_STOP
Starting BT scan
Finished BT scan. Found devices: 0
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This stale issue has been automatically closed. Thank you for your contributions.
Hardware:
Board: M5Stack Core Core Installation/update date: 9/7/18 IDE name: Arduino IDE Flash Frequency: 80Mhz Upload Speed: 921600
Description:
I'm testing a BT to web gateway than scans for BT advertising data and posts it to useful places using WiFi. I'd like to test BT scanning performance when WiFi is on and off; this to seek performance tradeoffs. Thing is, once I've connected to WiFi and then attempted to stop WiFi, every subsequent BT scan returns zero objects. That's not right. Am I doing something wrong? Code below; comments and input welcome!
Sketch:
Debug Messages: