Hello,
I'm new to BTLE and I'm trying to send a Value from the ADC of the CC2541 Slave to CC2541 Master. As a basis I'm using the examples from the Bluetooth Stack "Simple BLE Peripheral" and "Host Test App". I did not make any changes to the Host Test App. At the moment I'm able to get the value of the ADC and transport it to the Simpleprofile_CHAR1_UUID. Afterwards forming a connection with BTool I can read the Value by sending the UUID command F1:FF.
My question is: How can this procedure be programmed that the value is automatically send to the Master Device? Means Reset of the Slave puts it into Advertising Mode, If I form the connection with with BTool to the master, the value should be send and after sending the Slave should go to Sleep Mode. Without sending the Slave any special command!
Can anybody help me please? Thanks!
Michael