Print description of sensor models
@@ -4,9 +4,12 @@ use crate::drivers::ble::mesh::model::foundation::configuration::{
CONFIGURATION_CLIENT, CONFIGURATION_SERVER,
};
#[allow(unused_imports)]
-use crate::drivers::ble::mesh::model::generic::{
+use crate::drivers::ble::mesh::model::{
+ generic::{
battery::{GENERIC_BATTERY_CLIENT, GENERIC_BATTERY_SERVER},
onoff::{GENERIC_ONOFF_CLIENT, GENERIC_ONOFF_SERVER},
+ },
+ sensor::{SENSOR_CLIENT, SENSOR_SERVER, SENSOR_SETUP_SERVER},
};
use crate::drivers::ble::mesh::pdu::access::Opcode;
use crate::drivers::ble::mesh::pdu::ParseError;
@@ -43,6 +46,15 @@ impl defmt::Format for ModelIdentifier {
GENERIC_BATTERY_SERVER => {
defmt::write!(fmt, "Generic Battery Server (0x100C)");
}
+ SENSOR_SERVER => {
+ defmt::write!(fmt, "Sensor Server (0x1100)");
+ }
+ SENSOR_SETUP_SERVER => {
+ defmt::write!(fmt, "Sensor Setup Server (0x1101)");
+ }
+ SENSOR_CLIENT => {
+ defmt::write!(fmt, "Sensor Client (0x1102)");
+ }
GENERIC_BATTERY_CLIENT => {
defmt::write!(fmt, "Generic Battery Client (0x100D)");
}
