add gpio output for bluetooth communication active
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user