0

Can't compile sample code
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Can't compile sample code

by norx on Sat Dec 02, 2017 12:53 pm

Purchased Bluetooth shield and downloaded sample code. When verifying "atcommand" example received error:

Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Uno"
C:\Users\Rick\Documents\Arduino\libraries\Adafruit_BluefruitLE_nRF51\Adafruit_BLE.cpp: In member function 'int Adafruit_BLE::readBLEUart(uint8_t*, int)':
C:\Users\Rick\Documents\Arduino\libraries\Adafruit_BluefruitLE_nRF51\Adafruit_BLE.cpp:543: error: invalid conversion from 'uint8_t*' to 'char*'
C:\Users\Rick\Documents\Arduino\libraries\Adafruit_BluefruitLE_nRF51\Adafruit_BLE.cpp:543: error: initializing argument 1 of 'size_t Stream::readBytes(char*, size_t)'

any idea what I've left out?
Thanks

Never mind. Was using 1.0.6 IDE.

norx
 
Posts: 1
Joined: Sat Dec 02, 2017 12:48 pm

Re: Can't compile sample code

by franklin97355 on Sun Dec 03, 2017 3:19 am

Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Uno"
The Arduino IDE is at version 1.8.5. Try downloading the latest version and compiling again. Also, make sure you have the latest copies of the libraries.

franklin97355
 
Posts: 19057
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Please be positive and constructive with your questions and comments.