BT LE example does not even compile

heliboy · 5 · 10778

heliboy

  • Newbie
  • *
    • Posts: 3
    • View Profile
Tinyduino compiles and runs blink so at least we know our system works. However, the example for the bluetooth LE module on the website does not compile for me. I have board marked Rev2 and I got the sketch for Rev2. The complier complaints start with ... multiple definitions of \BGlib::checkError()  and just goes on from there.  Any ideas ?


TinyCircuits

  • Administrator
  • Hero Member
  • *****
    • Posts: 108
    • View Profile
    • TinyCircuits Homepage
Hi Heliboy,

It sounds like some of the BGLib files are not present in your sketch directory, if you scroll down to the bottom of the page at:  http://tiny-circuits.com/learn/using-the-bluetooth-low-energy-tinyshield/ you see a link to download a zip file with the sketch along the BGLib files.  Can you verify that you've downloaded all of that and are still having issues?

Thanks,

Ken
TinyCircuits


augy1010

  • Newbie
  • *
    • Posts: 1
    • View Profile
I have the same problem. I downloaded the file in the link but, I keep getting same error message.


projectfungus

  • Newbie
  • *
    • Posts: 3
    • View Profile

Hello,

So far, my Android phone cannot see my bluetooth TinyDuino, despite uploading the sample bluetooth sketch,<https://github.com/jrowberg/bglib/tree/master/Arduino/Examples/BGLib_stub_slave> via usb to the TinyDuino, and trying out the MeetAndroid sketch from <http://www.amarino-toolkit.net/index.php/download.html>.

Can anybody with Android familiarity advise on some useful steps to get an Android phone talking with a TinyDuino?

PF


tjdah10

  • Jr. Member
  • **
    • Posts: 6
    • View Profile
You get this error if you imported the BGLIB library into Arduino and then try to run the sketch from the downloaded zip file. To run the sketch, do either of these two:

1. Don't import the BGLib library into arduino and just run the sketch from the unpacked Zip file

OR

2. Manually copy the unpacked Zip file into your libraries folder.

Whatever you do, DO NOT import the library directly from the Zip. I got the same errors and fixed it that way.


 

SMF spam blocked by CleanTalk