Skip to content

Commit d1f1025

Browse files
authored
Merge pull request #1341 from h4n23s/feature/ibeacon-usage-explanation
Elaborate on iBeacon configuration
2 parents e215895 + 8265802 commit d1f1025

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

docs/Commands.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,21 @@ See also|[`SetOption157`](#setoption157) - Hide/Show sensitive data
10631063

10641064
### BLE ESP32
10651065

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+
10661081
Command|Parameters
10671082
:---|:---
10681083
BLEAddrFilter<a class="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.
10761091
BLEOp<a class="cmnd" id="bleop"></a>|Perform a simple active BLE operation (read/write/notify).<BR>see separate description in source code
10771092
BLEPeriod<a class="cmnd" id="bleperiod"></a>|Set the period for publish of BLE data<BR>`<value>` = set interval in seconds
10781093
BLEScan<a class="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<a class="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<a class="cmnd" id="ibeaconclear"></a>|Clear iBeacon list
1081-
IBEACONonlyaliased<a class="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<a class="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<a class="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<a class="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<a class="cmnd" id="ibeaconclear"></a>|Clears the list of iBeacon devices
1096+
IBeaconOnlyAliased<a class="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<a class="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<a class="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
10841099

10851100
### BLE MI Sensors
10861101

0 commit comments

Comments
 (0)