Hi All,
I am absolutely new in low-level programming, and my current project involves the following: a simple device saves data to the flash memory, and in a specific state sends all of the data to another one (which is connected to the PC via USB).
Therefore there will be two main parts:
1. Device: I found out that this should be a GAP peripheral and GATT server.
2. PC-side: GAP central, GATT client.
The most difficult for me is the transfer of data. I think that I should start from the project SimpleBLEPeripheral for the device and SimpleBLECentral for the PC-side. I also guess that I should modify the simpleGATTProfile in a way to be one of the characteristic values (e.g. 5th) the same size as the basic unit of data (one measurement).
The scenario is something like this:
0. (saved data is given);
1. device advertises;
2. PC connects;
3. device starts to upload saved data measurement-by-measurement.
Are my previous thougths true? How can I read the current measurement data in the SimpleBLECentral project? How can PC detect that there's a new measurement in the characteristic value to be read? And how can device detect that the first measurement is succesfully uploaded, and a new one can be set? Do I have to use bond manager, or it is possible to automatically connect to any device in the neighborhood without using it?
Any hints are welcome!
Regards,
Gergo Zsiak