Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For the "Manufacturer Specific Data" type, you will need to configure the "data" field in the hexadecimal format. The second octet for this type is going to be set to FF.

Connections

Info

Availible starting with v7.12beta9.

Currenetly, only "central" role is supported. "Pheriperal device" role, "pairing" and "encryptions" options are not supported yet.

Availible sections are:

SectionDescription
async-dataused to view subscribed data.
characteristicsused to view all supported characteristics of the device.
connectused to connect to the device that is in the connactable state.
disconnectused to disconnect from the device.
readused to read characteristics values.
writeused to write characteristics values.
subscribeused to subscribe to a charasteristic value.
unsubscribeused to unsubscribe from a charasteristic value.

In order to connect to a Bluetooth device that is in the connactable state, use the command (where pdev is the device address):

Code Block
languageros
/iot bluetooth connections connect pdev=DC:2C:6E:0F:C0:3D
Info

To connect to TG-BT5-IN/OUT tags, make sure to put it into the connactable state by applying a magnet to the magnetic switch.

To view an already established connection:

Code Block
languageros
/iot bluetooth connections print

To view device characteristics:

Code Block
languageros
/iot bluetooth connections characteristics print
Columns: PDEV, NAME, UUID
 #  PDEV               NAME                              UUID                            
 0  DC:2C:6E:0F:C0:3D  Service Changed                   2a05                            
 1  DC:2C:6E:0F:C0:3D  Database Hash                     2b2a                            
 2  DC:2C:6E:0F:C0:3D  Client Supported Features         2b29                            
 3  DC:2C:6E:0F:C0:3D  Device Name                       2a00                            
 4  DC:2C:6E:0F:C0:3D  Appearance                        2a01                            
...
...
...

To read a specific characteristic, specify the pdev address and the uuid:

Code Block
languageros
/iot bluetooth connections read pdev=DC:2C:6E:0F:C0:3D uuid=2a00

Scanners

In this menu, you can set up the scanner settings for the Bluetooth chip. When disabled, the device is no longer able to receive advertising reports. When enabled, you can monitor advertising reports in the "Advertising reports" tab (which will be explained later in the guide). You can check and set scanner settings with the commands:

...