hoberman/Victron_BLE_Advertising_example

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

Closed this issue · 2 comments

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

OK I found the way inside the BLE sample sketch :

Remplace :

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

With :

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

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