EXAMPLE 1

When the device in observer mode detects a user: it activates output 2 for 5 seconds, stores the operation by appending a line in a file on the SD card and sends a notification SMS containing the last recorded event, that is the detection of the bluetooth user.

This could be a typical example of a bluetooth remote control for electric gates with event recording and remote notification.


BLB BLE USER DISCOVERED






out2=on,5

AT#AFILE=S:LOGS/access.txt,T,"$D14 $D15: $B07"

AT+SMS=+391234,"$D23"



trigger event is the detection of a bluetooth user.

The first action contains the command that activates output 2 for 5 seconds.

The second action contains the command that adds a line to the access.txt file in the LOGS folder of the S: drive (SD card):
TAG $D14 which is the current day
TAG $D15 which is the current time
TAG $B07 that is the name of the last bluetooth user detected
The contents of the file will be something like this:
210308 121020: Charles
210308 122115: Mary

The third action contains the command that sends an SMS message to the number +391234 as text the last event recorded by the device (D23) is used, the content will be something like this:
BLE DETECTED Mary 85c6f4900fe7404ba7a75e99881cd05e