diff --git a/Sensor-API.md b/Sensor-API.md index 809ac5d4..f6ede560 100644 --- a/Sensor-API.md +++ b/Sensor-API.md @@ -135,6 +135,14 @@ This callback ID is called to allow a sensor to prepare for saving configuration ### FUNC_COMMAND This callback ID is called when a sensor specific command ``Sensor`` is executed where xx is the sensor index. +``` + case FUNC_COMMAND: + if (XSNS_ == XdrvMailbox.index) { + result = Command() { ... }; // Return true on success + } + break; + +``` ``` // Data struct of FUNC_COMMAND ID struct XDRVMAILBOX {