I have been battling with this one: after a good connect to my firmware project and reading all of the initial characteristics and data that is available and sending a couple of manager.WriteData to the device requesting new data to be ready, I do additional manager.ReadData2(s,c) calls and am expecting to see the fresh data. However all I get back is the same data from the first ReadData2 that was done just after connection.
On my device I do not see that anything was sent to it due to the manager.ReadData2(s,c) call in my B4A program which I assume would happen such that the fresh data my firmware device has updated for the requested characteristic would be brought over to the phone running the B4A application. Doesn't happen, I keep reading the same characteristic data from the first and only read that actually seemed to work. I don't see a manager.DataAvailable event after the first ones after connecting.
What am I missing on reading and re-reading a characteristic's data many times with out a disconnect/connection to make repeated reads to work?
My B4A program writes to the device and this works well. I can read data from the device which is pulled in just after initial connection.
I had tried using manager.ReadData(serviceID) which would read all of the characteristics and didn't see that this helped.
I think this question is more conceptual and someone else must be using this sort of reading chunks of data via. BLE ReadData2 calls.
So I didn't include any source code in my question at this point.
On my device I do not see that anything was sent to it due to the manager.ReadData2(s,c) call in my B4A program which I assume would happen such that the fresh data my firmware device has updated for the requested characteristic would be brought over to the phone running the B4A application. Doesn't happen, I keep reading the same characteristic data from the first and only read that actually seemed to work. I don't see a manager.DataAvailable event after the first ones after connecting.
What am I missing on reading and re-reading a characteristic's data many times with out a disconnect/connection to make repeated reads to work?
My B4A program writes to the device and this works well. I can read data from the device which is pulled in just after initial connection.
I had tried using manager.ReadData(serviceID) which would read all of the characteristics and didn't see that this helped.
I think this question is more conceptual and someone else must be using this sort of reading chunks of data via. BLE ReadData2 calls.
So I didn't include any source code in my question at this point.