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): 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: |