From you last reply to earlier ticket now i am able to follow and reading your programs
understood quite some part of the flow. Still its not very straight forward
I checked few examples under peripherals. I will explain my scenario
please suggest appropriate exampel to use as base code
Also want to study about SoftDevices and various versions
Please give a link to document about it
Also want to know about the directory structure.
Under any examples there are various folders
pca10040
pca10040e.. etc
Please let me knwo about the significance of the same
Any document you have as what is the highlight of the
various examples
Finaly our requirement is
1. Read analog input from the temperature sensor
2. Keep the counter of minutes running always
it should count minutes even in sleep mode
so please suggest the proper sleep mode. It can
wake up every 5 minutes. If temp is normal then sleep again
3. For each rise in temperature we store the minutes count
as time stamp, as we not using external RTC. So use
RTc (which is a counter in 52810 case )
4. Again sleep after recording the event mark as start
detected.
5. For further wakeup we check if the temp is gone below
a set point so we mark it as off and store this
information with RTC count
6. This will keep happenng all time
This was the processing part now the BLE part
We have to wait for the connection to the central. The
central will not be available always. So we need a method to know
if the central is now available
(i am not sure how the communication will work )
Ideally i want the peripheral to wake up when it detects
the central in vicinity. Is this possible?
If yes tell me proper example for the same.
If not then one way i feel is we start the advertising
and wait for the central to connect If no connection
or no command from central then sleep again and wake up
and try again.
For the above working please suggest the appropriate example
or examples to follow.