add gpio output for bluetooth communication active

This commit is contained in:
technyon
2025-10-06 17:51:00 +07:00
parent e05ff0fdd0
commit 0e1caf6211
8 changed files with 27 additions and 22 deletions

View File

@@ -181,6 +181,7 @@ void Gpio::setPins()
case PinRole::OutputHighMqttConnected:
case PinRole::OutputHighNetworkConnected:
case PinRole::OutputHighBluetoothCommError:
case PinRole::OutputHighBluetoothComm:
pinMode(entry.pin, OUTPUT);
break;
case PinRole::Ethernet:
@@ -504,6 +505,8 @@ String Gpio::getRoleDescription(const PinRole& role) const
return "Output: High when MQTT connected";
case PinRole::OutputHighNetworkConnected:
return "Output: High when network connected";
case PinRole::OutputHighBluetoothComm:
return "Output: High on bluetooth communication active";
case PinRole::OutputHighBluetoothCommError:
return "Output: High on bluetooth communication error";
default:
@@ -554,6 +557,7 @@ GpioAction Gpio::getGpioAction(const PinRole &role) const
case PinRole::OutputHighRtoOrCmActive:
case PinRole::OutputHighMqttConnected:
case PinRole::OutputHighNetworkConnected:
case PinRole::OutputHighBluetoothComm:
case PinRole::OutputHighBluetoothCommError:
default:
return GpioAction::None;