JosephHewitt / wardriver_rev3

A portable ESP32-based WiFi/Bluetooth scanner for Wigle.net.
https://wardriver.uk
GNU General Public License v3.0
254 stars 26 forks source link

B Error: conversion to non-scalar type #166

Closed Babyeggz closed 3 months ago

Babyeggz commented 3 months ago

When compiling for the B board I get the following error about converting BLEScanResults* to a non-scalar type BLEScanResults.

ERROR Output:

Arduino: 1.8.19 (Linux), Board: "ESP32 Dev Module, Disabled, Disabled, Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS), 240MHz (WiFi/BT), DIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled, Disabled"

/home/username/Downloads/wardriver_rev3-main/B/B.ino: In function 'void loop()':
B:392:48: error: conversion from 'BLEScanResults*' to non-scalar type 'BLEScanResults' requested
  392 |   BLEScanResults foundDevices = pBLEScan->start(2.2, false);
      |                                 ~~~~~~~~~~~~~~~^~~~~~~~~~~~
Multiple libraries were found for "WiFi.h"
 Used: /home/username/.arduino15/packages/esp32/hardware/esp32/3.0.3/libraries/WiFi
 Not used: /app/Arduino/libraries/WiFi
Using library WiFi at version 3.0.3 in folder: /home/username/.arduino15/packages/esp32/hardware/esp32/3.0.3/libraries/WiFi 
Using library Network at version 3.0.3 in folder: /home/username/.arduino15/packages/esp32/hardware/esp32/3.0.3/libraries/Network 
Using library BLE at version 3.0.3 in folder: /home/username/.arduino15/packages/esp32/hardware/esp32/3.0.3/libraries/BLE 
Using library Update at version 3.0.3 in folder: /home/username/.arduino15/packages/esp32/hardware/esp32/3.0.3/libraries/Update 
Using library Wire at version 3.0.3 in folder: /home/username/.arduino15/packages/esp32/hardware/esp32/3.0.3/libraries/Wire 
Using library Adafruit_GFX_Library at version 1.11.9 in folder: /home/username/Arduino/libraries/Adafruit_GFX_Library 
Using library Adafruit_BusIO at version 1.16.1 in folder: /home/username/Arduino/libraries/Adafruit_BusIO 
Using library SPI at version 3.0.3 in folder: /home/username/.arduino15/packages/esp32/hardware/esp32/3.0.3/libraries/SPI 
Using library Adafruit_SSD1306 at version 2.5.10 in folder: /home/username/Arduino/libraries/Adafruit_SSD1306 
Using library OneWire at version 2.3.7 in folder: /home/username/Arduino/libraries/OneWire 
exit status 1
conversion from 'BLEScanResults*' to non-scalar type 'BLEScanResults' requested

Is this an error in the code or an error on my part when compiling?

Babyeggz commented 3 months ago

Was an error on my part. I was using main and not stable and I also was using the wrong ESP32 board version. I swapped to the stable release 1 version back from main and swapped my board version to 2.0.0 and it fixed my issue.