Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - countkaushik

Pages: 1
1
I was able to run the slave example (BGLib_stub_slave.ino) on my TinyDuino. But it only shows how to handle a writable characteristics. Can any anybody help me with readable characteristics? Which BGLib callback should I define for a readable characteristics? For example, I have an accelerometer Tinyshield, and I want to make the x,y,z and temp data available over the Bluetooth LE by exposing a readable characteristics. Does anybody have any idea about how to do that? Any help or pointer to example code would be appreciated.

2
I am using a rev 2 TinyDuino BLE shield. I am trying to run the scanner example (BGLib_scaner.ino) from the BGLib example folder (https://github.com/jrowberg/bglib/tree/master/Arduino/Examples/BGLib_scanner). I have modified the line 59:

SoftwareSerial bleSerialPort(3, 4); // RX, TX

to account for the fact that the serial ports are connected to pin 3 and 4 according to the TinyDuino BLE shield tutorial.

But it is not working as expected. From my iPhone I am running BLE explorer in peripheral mode to advertise alert notification service. But when I enter '2' from the serial monitor of the TinyDuino, I just get the output - -->   gap_set_scan_parameters: { scan_interval: 0xC8, scan_window: 0xC8, active: 1 },  but no actual advertising data.

Is the TinyDuino BLE shield capable of scanning advertising packets from other peripheral devices? I am not sure if I am doing anything wrong. Any help would be appreciated!

Pages: 1
SMF spam blocked by CleanTalk