hoberman / Victron_BLE_Advertising_example

11 stars 2 forks source link

error: conversion from 'BLEScanResults*' to non-scalar type 'BLEScanResults' requested #4

Closed VigibotDev closed 1 week ago

VigibotDev commented 1 month ago

Arduino IDE 2.3.2 fresh install + Heltec v3 board added; give this compilation error :

D:\A\Victron_BLE_Advertising_example\loop.ino: In function 'void loop()':
D:\A\Victron_BLE_Advertising_example\loop.ino:4:48: error: conversion from 'BLEScanResults*' to non-scalar type 'BLEScanResults' requested
    4 |   BLEScanResults foundDevices = pBLEScan->start(scanTime, false);
      |                                 ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~

exit status 1

Compilation error: conversion from 'BLEScanResults*' to non-scalar type 'BLEScanResults' requested
VigibotDev commented 1 month ago

OK I found the way inside the BLE sample sketch :

Remplace :

BLEScanResults foundDevices = pBLEScan->start(scanTime, false);

With :

BLEScanResults *foundDevices = pBLEScan->start(scanTime, false);
hoberman commented 1 week ago

Thanks for letting me know. I've updated the code in my repo.