You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Commands.md
+20-5Lines changed: 20 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1063,6 +1063,21 @@ See also|[`SetOption157`](#setoption157) - Hide/Show sensitive data
1063
1063
1064
1064
### BLE ESP32
1065
1065
1066
+
Tasmota keeps track of iBeacon devices in a list with up to 32 slots where each device is uniquely identified by these attributes:
1067
+
1068
+
-`UUID`
1069
+
-`Major`
1070
+
-`Minor`
1071
+
1072
+
Once all 32 slots are used up, additional devices will not be added until at least one slot is freed up again.
1073
+
1074
+
Devices are added to the list as soon as BLE iBeacon advertisements are received from a yet unknown beacon.<BR>
1075
+
Any additional advertisements override the device's entry until a reporting period (see [IBeaconPeriod](#ibeaconperiod)) has passed and an MQTT message is sent based on the last advertisement's data.
1076
+
1077
+
Device entries expire automatically if no iBeacon advertisements were received within a certain timeframe (see [IBeaconTimeout](#ibeacontimeout)).<BR>
1078
+
Upon expiry, Tasmota creates an MQTT message with the `RSSI` value set to `0000`.
1079
+
<BR>
1080
+
1066
1081
Command|Parameters
1067
1082
:---|:---
1068
1083
BLEAddrFilter<aclass="cmnd"id="bleaddrfilter"></a>|Set BLE Address type filter.<BR>`BLEAddrFilter` = show filter level<BR>`BLEAddrFilter n` = set BLE address type filter 0..3 - default 3. Ignores BLE address types > filter value. Set 0 to ONLY see public addresses.
@@ -1076,11 +1091,11 @@ BLEName<a class="cmnd" id="blename"></a>|Read or write the name of a BLE device.
1076
1091
BLEOp<aclass="cmnd"id="bleop"></a>|Perform a simple active BLE operation (read/write/notify).<BR>see separate description in source code
1077
1092
BLEPeriod<aclass="cmnd"id="bleperiod"></a>|Set the period for publish of BLE data<BR>`<value>` = set interval in seconds
1078
1093
BLEScan<aclass="cmnd"id="blescan"></a>|Cause/Configure BLE a scan<BR>`BLEScan0 0..1` = enable or disable Active scanning. (an active scan will gather extra data from devices, including name)<BR>`BLEScan` = Trigger a 20s scan now if in BLEMode1<BR>`BLEScan n` = Trigger a scan now for n seconds if in BLEMode1
1079
-
IBEACON<aclass="cmnd"id="ibeacon"></a>|Show or set enable for the iBeacon driver<BR>`IBEACON` = Display 0|1<BR>`IBEACON 0` = disable<BR>`IBEACON 1` = enable.
1080
-
IBEACONclear<aclass="cmnd"id="ibeaconclear"></a>|Clear iBeacon list
1081
-
IBEACONonlyaliased<aclass="cmnd"id="ibeacononlyaliased"></a>|Show or set OnlyAliased for the iBeacon driver<BR>`IBEACONonlyaliased` = Display 0|1<BR>`IBEACONonlyaliased 0` = enable iBeacon to hear ALL BLE devices<BR>`IBEACONonlyaliased 1` = enable iBeacon to hear ONLY devices with valid BLEAlias<BR>`IBEACONonlyaliased 2` = enable iBeacon to hear ONLY devices with valid BLEAlias starting `iB`
1082
-
IBEACONperiod<aclass="cmnd"id="ibeaconperiod"></a>|Display or Set the period for publish of iBeacon data<BR>`IBEACONperiod` = display interval<BR>`IBEACONperiod ss` = set interval in seconds
1083
-
IBEACONtimeout<aclass="cmnd"id="ibeacontimeout"></a>|Display or Set the timeout for iBeacon devices<BR>`IBEACONtimeout` = display timeout<BR>`IBEACONtimeout ss` = set timeout in seconds
1094
+
IBeacon<aclass="cmnd"id="ibeacon"></a>|Enable or disable the iBeacon driver<BR>`IBeacon` = Get current state<BR>`IBeacon 0` = Disable<BR>`IBeacon 1` = Enable
1095
+
IBeaconClear<aclass="cmnd"id="ibeaconclear"></a>|Clears the list of iBeacon devices
1096
+
IBeaconOnlyAliased<aclass="cmnd"id="ibeacononlyaliased"></a>|Shows or sets OnlyAliased for the iBeacon driver<BR>`IBeaconOnlyAliased` = Get current state<BR>`IBeaconOnlyAliased 0` = enable iBeacon to hear ALL BLE devices<BR>`IBeaconOnlyAliased 1` = enable iBeacon to hear ONLY devices with valid BLEAlias<BR>`IBeaconOnlyAliased 2` = enable iBeacon to hear ONLY devices with valid BLEAlias starting `iB`
1097
+
IBeaconPeriod<aclass="cmnd"id="ibeaconperiod"></a>|Displays or sets the period at which iBeacon data will be published.<BR>`IBeaconPeriod` = Get current interval (defaults to `10`)<BR>`IBeaconPeriod <sec>` = Interval in seconds
1098
+
IBeaconTimeout<aclass="cmnd"id="ibeacontimeout"></a>|Displays or sets the timeout after which iBeacon devices are automatically expunged from the iBeacon device list.<BR>`IBeaconTimeout` = Get current timeout (defaults to `30`)<BR>`IBeaconTimeout <sec>` = Timeout in seconds
0 commit comments