bluetooth_mesh.messages¶
-
bluetooth_mesh.messages.AccessMessage= <Select> ConfigMessageDebugMessageGatewayConfigMessageGenericMessageHealthMessageMessageNetworkDiagnosticServerMessageSceneMessageSensorMessageSensorSetupMessage
Config¶
-
bluetooth_mesh.messages.config.ConfigMessage= <Struct>¶ - opcode:
EnumofConfigOpcodeasSelectfrom Uint8Uint16Uint24
- opcode:
- params:
Switchby opcode ConfigOpcode.APPKEY_ADDapp_key_index:
Uint12net_key_index:
Uint12app_key:
bytes[16]
ConfigOpcode.APPKEY_DELETEapp_key_index:
Uint12net_key_index:
Uint12
ConfigOpcode.APPKEY_GETnet_key_index:
Uint12
ConfigOpcode.APPKEY_LISTstatus:
EnumofStatusCodeasUint8net_key_index:
Uint12app_key_indices:
RangeofUint12
ConfigOpcode.APPKEY_STATUSstatus:
EnumofStatusCodeasUint8app_key_index:
Uint12net_key_index:
Uint12
ConfigOpcode.APPKEY_UPDATEapp_key_index:
Uint12net_key_index:
Uint12app_key:
bytes[16]
ConfigOpcode.BEACON_GETConfigOpcode.BEACON_SETbeacon:
EnumofSecureNetworkBeaconasUint8
ConfigOpcode.BEACON_STATUSbeacon:
EnumofSecureNetworkBeaconasUint8
ConfigOpcode.COMPOSITION_DATA_GETpage:
Uint8
ConfigOpcode.COMPOSITION_DATA_STATUSpage:
Uint8- data:
Switchby page 0CID:
Uint16PID:
Uint16VID:
Uint16CRPL:
Uint16features:
Uint16- elements:
RangeofStructof location:
EnumofGATTNamespaceDescriptorasUint16SIG_number:
Uint8vendor_number:
Uint8- SIG_models:
Array[SIG_number]ofStructof model_id:
Uint16
- SIG_models:
- vendor_models:
Array[vendor_number]ofStructof vendor_id:
Uint16model_id:
Uint16
- vendor_models:
- elements:
- data:
ConfigOpcode.DEFAULT_TTL_GETConfigOpcode.DEFAULT_TTL_SETTTL:
Uint8
ConfigOpcode.DEFAULT_TTL_STATUSTTL:
Uint8
ConfigOpcode.FRIEND_GETConfigOpcode.FRIEND_SETfriend:
EnumofFriendasUint8
ConfigOpcode.FRIEND_STATUSfriend:
EnumofFriendasUint8
ConfigOpcode.GATT_PROXY_GETConfigOpcode.GATT_PROXY_SETGATT_proxy:
EnumofGATTProxyasUint8
ConfigOpcode.GATT_PROXY_STATUSGATT_proxy:
EnumofGATTProxyasUint8
ConfigOpcode.HEARBEAT_PUBLICATION_GETConfigOpcode.HEARBEAT_PUBLICATION_SETdestination:
Uint16count:
Uint8period:
Uint8TTL:
Uint8features:
Array[16]ofUint1net_key_index:
Uint12
ConfigOpcode.HEARBEAT_PUBLICATION_STATUSstatus:
EnumofStatusCodeasUint8destination:
Uint16count:
Uint8period:
Uint8TTL:
Uint8features:
Array[16]ofUint1net_key_index:
Uint12
ConfigOpcode.HEARBEAT_SUBSCRIPTION_GETConfigOpcode.HEARBEAT_SUBSCRIPTION_SETsource:
Uint16destination:
Uint16period_log:
Uint8
ConfigOpcode.HEARBEAT_SUBSCRIPTION_STATUSstatus:
EnumofStatusCodeasUint8source:
Uint16destination:
Uint16period_log:
Uint8count:
Uint8min_hops:
Uint8max_hops:
Uint8
ConfigOpcode.KEY_REFRESH_PHASE_GETnet_key_index:
Uint12
ConfigOpcode.KEY_REFRESH_PHASE_SETnet_key_index:
Uint12transition:
EnumofKeyRefreshTransitionasUint8
ConfigOpcode.KEY_REFRESH_PHASE_STATUSstatus:
EnumofStatusCodeasUint8net_key_index:
Uint12phase:
EnumofKeyRefreshPhaseasUint8
ConfigOpcode.LOW_POWER_NODE_POLLTIMEOUT_GETlpn_address:
Uint16
ConfigOpcode.LOW_POWER_NODE_POLLTIMEOUT_STATUSlpn_address:
Uint16poll_timeout:
Uint24
ConfigOpcode.MODEL_APP_BINDelement_address:
Uint16app_key_index:
Uint12- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_APP_STATUSstatus:
EnumofStatusCodeasUint8element_address:
Uint16app_key_index:
Uint12- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_APP_UNBINDelement_address:
Uint16app_key_index:
Uint12- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_PUBLICATION_GETelement_address:
Uint16- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_PUBLICATION_SETelement_address:
Uint16publish_address:
Uint16RFU:
Uint3credential_flag:
EnumofPublishFriendshipCredentialsFlagasboolapp_key_index:
Uint12TTL:
Uint8- publish_period:
Structof step_resolution:
EnumofPublishPeriodStepResolutionasUint2number_of_steps:
Uint6
- publish_period:
- retransmit:
Structof interval_steps:
Uint5count:
Uint3
- retransmit:
- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_PUBLICATION_STATUSstatus:
EnumofStatusCodeasUint8element_address:
Uint16publish_address:
Uint16RFU:
Uint3credential_flag:
EnumofPublishFriendshipCredentialsFlagasboolapp_key_index:
Uint12TTL:
Uint8- publish_period:
Structof step_resolution:
EnumofPublishPeriodStepResolutionasUint2number_of_steps:
Uint6
- publish_period:
- retransmit:
Structof interval_steps:
Uint5count:
Uint3
- retransmit:
- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_PUBLICATION_VIRTUAL_ADDRESS_SETelement_address:
Uint16publish_address:
bytes[16]RFU:
Uint3credential_flag:
EnumofPublishFriendshipCredentialsFlagasboolapp_key_index:
Uint12TTL:
Uint8- publish_period:
Structof step_resolution:
EnumofPublishPeriodStepResolutionasUint2number_of_steps:
Uint6
- publish_period:
- retransmit:
Structof interval_steps:
Uint5count:
Uint3
- retransmit:
- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_SUBSCRIPTION_ADDelement_address:
Uint16address:
Uint16- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_SUBSCRIPTION_DELETEelement_address:
Uint16address:
Uint16- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_SUBSCRIPTION_DELETE_ALLelement_address:
Uint16- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_SUBSCRIPTION_OVERWRITEelement_address:
Uint16address:
Uint16- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_SUBSCRIPTION_STATUSstatus:
EnumofStatusCodeasUint8element_address:
Uint16address:
Uint16- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_SUBSCRIPTION_VIRTUAL_ADDRESS_ADDelement_address:
Uint16label:
bytes[16]- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_SUBSCRIPTION_VIRTUAL_ADDRESS_DELETEelement_address:
Uint16label:
bytes[16]- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.MODEL_SUBSCRIPTION_VIRTUAL_ADDRESS_OVERWRITEelement_address:
Uint16label:
bytes[16]- model:
Selectfrom Structofvendor_id:
Uint16model_id:
Uint16
Structofmodel_id:
Uint16
- model:
ConfigOpcode.NETKEY_ADDnet_key_index:
Uint12net_key:
bytes[16]
ConfigOpcode.NETKEY_DELETEnet_key_index:
Uint12
ConfigOpcode.NETKEY_GETConfigOpcode.NETKEY_LISTnet_key_indices:
RangeofUint12
ConfigOpcode.NETKEY_STATUSstatus:
EnumofStatusCodeasUint8net_key_index:
Uint12
ConfigOpcode.NETKEY_UPDATEnet_key_index:
Uint12net_key:
bytes[16]
ConfigOpcode.NETWORK_TRANSMIT_GETConfigOpcode.NETWORK_TRANSMIT_SETinterval_steps:
Uint5count:
Uint3
ConfigOpcode.NETWORK_TRANSMIT_STATUSinterval_steps:
Uint5count:
Uint3
ConfigOpcode.NODE_IDENTITY_GETnet_key_index:
Uint12
ConfigOpcode.NODE_IDENTITY_SETnet_key_index:
Uint12identity:
EnumofNodeIdentityasUint8
ConfigOpcode.NODE_IDENTITY_STATUSstatus:
EnumofStatusCodeasUint8net_key_index:
Uint12identity:
EnumofNodeIdentityasUint8
ConfigOpcode.NODE_RESETConfigOpcode.NODE_RESET_STATUSConfigOpcode.RELAY_GETConfigOpcode.RELAY_SETrelay:
EnumofRelayasUint8- retransmit:
Structof interval_steps:
Uint5count:
Uint3
- retransmit:
ConfigOpcode.RELAY_STATUSrelay:
EnumofRelayasUint8- retransmit:
Structof interval_steps:
Uint5count:
Uint3
- retransmit:
ConfigOpcode.SIG_MODEL_APP_GETelement_address:
Uint16- model:
Structof model_id:
Uint16
- model:
ConfigOpcode.SIG_MODEL_APP_LISTstatus:
EnumofStatusCodeasUint8element_address:
Uint16- model:
Structof model_id:
Uint16
- model:
app key indices:
RangeofUint12
ConfigOpcode.SIG_MODEL_SUBSCRIPTION_GETelement_address:
Uint16- model:
Structof model_id:
Uint16
- model:
ConfigOpcode.SIG_MODEL_SUBSCRIPTION_LISTstatus:
EnumofStatusCodeasUint8element_address:
Uint16- model:
Structof model_id:
Uint16
- model:
addresses:
RangeofUint16
ConfigOpcode.VENDOR_MODEL_APP_GETelement_address:
Uint16- model:
Structof vendor_id:
Uint16model_id:
Uint16
- model:
ConfigOpcode.VENDOR_MODEL_APP_LISTstatus:
EnumofStatusCodeasUint8element_address:
Uint16- model:
Structof vendor_id:
Uint16model_id:
Uint16
- model:
app key indices:
RangeofUint12
ConfigOpcode.VENDOR_MODEL_SUBSCRIPTION_GETelement_address:
Uint16- model:
Structof vendor_id:
Uint16model_id:
Uint16
- model:
ConfigOpcode.VENDOR_MODEL_SUBSCRIPTION_LISTstatus:
EnumofStatusCodeasUint8element_address:
Uint16- model:
Structof vendor_id:
Uint16model_id:
Uint16
- model:
addresses:
RangeofUint16
- params:
Health¶
-
bluetooth_mesh.messages.health.HealthMessage= <Struct>¶ - opcode:
EnumofHealthOpcodeasSelectfrom Uint8Uint16Uint24
- opcode:
- params:
Switchby opcode HealthOpcode.ATTENTION_GETHealthOpcode.ATTENTION_SETattention:
Uint8
HealthOpcode.ATTENTION_SET_UNACKNOWLEDGEDattention:
Uint8
HealthOpcode.ATTENTION_STATUSattention:
Uint8
HealthOpcode.CURRENT_STATUStest_id:
Uint8company_id:
Uint16fault_array:
RangeofUint8
HealthOpcode.FAULT_CLEARcompany_id:
Uint16
HealthOpcode.FAULT_CLEAR_UNACKNOWLEDGEDcompany_id:
Uint16
HealthOpcode.FAULT_GETcompany_id:
Uint16
HealthOpcode.FAULT_STATUStest_id:
Uint8company_id:
Uint16fault_array:
RangeofUint8
HealthOpcode.FAULT_TESTtest_id:
Uint8company_id:
Uint16
HealthOpcode.FAULT_TEST_UNACKNOWLEDGEDtest_id:
Uint8company_id:
Uint16
HealthOpcode.PERIOD_GETHealthOpcode.PERIOD_SETfast_period_divisor:
Uint8
HealthOpcode.PERIOD_SET_UNACKNOWLEDGEDfast_period_divisor:
Uint8
HealthOpcode.PERIOD_STATUSfast_period_divisor:
Uint8
- params:
Debug¶
-
bluetooth_mesh.messages.silvair.debug.DebugMessage= <Struct>¶ opcode:
ConstDebugOpcode.OPCODE- params:
Structof subopcode:
EnumofDebugSubOpcodeasUint8- data:
Switchby subopcode DebugSubOpcode.RSSI_THRESHOLD_SETrssi_threshold:
Uint8
DebugSubOpcode.RSSI_THRESHOLD_STATUSrssi_threshold:
Uint8
DebugSubOpcode.RADIO_TESTpacket_counter:
Uint8
DebugSubOpcode.TIMESLOT_TX_POWER_SETtx_power:
Uint8
DebugSubOpcode.TIMESLOT_TX_POWER_STATUStx_power:
Uint8
DebugSubOpcode.SOFTDEVICE_TX_POWER_SETtx_power:
Uint8
DebugSubOpcode.SOFTDEVICE_TX_POWER_STATUStx_power:
Uint8
DebugSubOpcode.UPTIME_STATUSuptime:
Uint32
DebugSubOpcode.LAST_SW_FAULT_STATUStime:
Uint32fault:
bytes
DebugSubOpcode.SYSTEM_STATS_STATUS- stats:
RangeofStructof name:
byteshigh_water_mark:
Uint16
- stats:
DebugSubOpcode.LAST_MALLOC_FAULT_STATUStime:
Uint32fault:
bytes
DebugSubOpcode.LAST_FDS_FAULT_STATUStime:
Uint32fault:
bytes
DebugSubOpcode.BYTES_BEFORE_GARBAGE_COLLECTOR_STATUSbytes_left:
Uint16
DebugSubOpcode.PROVISIONED_APP_VERSION_STATUSversion:
Uint16
DebugSubOpcode.FULL_FIRMWARE_VERSION_STATUSversion:
bytes
DebugSubOpcode.IV_INDEX_STATUSivindex:
Uint32
DebugSubOpcode.GARBAGE_COLLECTOR_COUNTER_STATUScounter:
Uint16
DebugSubOpcode.ARAP_LIST_SIZE_STATUSStructofcapacity:
Uint16size:
Uint16
Structofcapacity:
Uint8size:
Uint8
DebugSubOpcode.ARAP_LIST_CONTENT_GETpage:
Uint8
DebugSubOpcode.ARAP_LIST_CONTENT_STATUScurrent_page:
Uint8last_page:
Uint8- nodes:
RangeofStructof sequence:
Uint24ivi:
Uint1address:
Uint15
- nodes:
- data:
- params:
Network Diagnostic¶
Server¶
-
class
bluetooth_mesh.messages.silvair.network_diagnostic_server.NetworkDiagnosticServerOpcode[source]¶ An enumeration.
-
class
bluetooth_mesh.messages.silvair.network_diagnostic_server.NetworkDiagnosticServerSubOpcode[source]¶ An enumeration.
-
bluetooth_mesh.messages.silvair.network_diagnostic_server.NetworkDiagnosticServerMessage= <Struct>¶ opcode:
ConstNetworkDiagnosticServerOpcode.OPCODE- params:
Structof subopcode:
EnumofNetworkDiagnosticServerSubOpcodeasUint8- payload:
Switchby subopcode NetworkDiagnosticServerSubOpcode.SUBSCRIPTION_SETdestination:
Uint16period:
Uint16
NetworkDiagnosticServerSubOpcode.SUBSCRIPTION_SET_UNACKdestination:
Uint16period:
Uint16
NetworkDiagnosticServerSubOpcode.SUBSCRIPTION_STATUSdestination:
Uint16period:
Uint16max_record_count:
Const32- record:
RangeofStructof source:
Uint16count:
Uint16min_hops:
Uint8max_hops:
Uint8
- record:
- payload:
- params:
Setup Server¶
-
class
bluetooth_mesh.messages.silvair.network_diagnostic_server.NetworkDiagnosticSetupServerOpcode[source]¶ An enumeration.
-
class
bluetooth_mesh.messages.silvair.network_diagnostic_server.NetworkDiagnosticSetupServerSubOpcode[source]¶ An enumeration.
-
bluetooth_mesh.messages.silvair.network_diagnostic_server.NetworkDiagnosticSetupServerMessage= <Struct>¶ opcode:
ConstNetworkDiagnosticSetupServerOpcode.OPCODE- params:
Structof subopcode:
EnumofNetworkDiagnosticSetupServerSubOpcodeasUint8- payload:
Switchby subopcode NetworkDiagnosticSetupServerSubOpcode.PUBLICATION_SETdestination:
Uint16count:
Uint16- period:
Structof resolution:
Uint2steps:
Uint6
- period:
ttl:
Uint8net_key_index:
Uint16- features:
Selectfrom Uint16None
- features:
NetworkDiagnosticSetupServerSubOpcode.PUBLICATION_STATUSdestination:
Uint16count:
Uint16- period:
Structof resolution:
Uint2steps:
Uint6
- period:
ttl:
Uint8net_key_index:
Uint16- features:
Selectfrom Uint16None
- features:
- payload:
- params: