diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c018f44..e8f20b64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.13) -project(owgw VERSION 3.0.0) +project(owgw VERSION 3.0.1) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED True) diff --git a/PROTOCOL.md b/PROTOCOL.md index aaf7be1d..c84eb1fc 100644 --- a/PROTOCOL.md +++ b/PROTOCOL.md @@ -355,6 +355,39 @@ The device should answer: - 1 : the device is busy but will reboot soon. `text` may indicate why. - 2 : the device will not reboot. `text` contains information as to why. +#### Controller wants to power-cycle PoE port(s) +Controller sends this command to power-cycle 1 or more PoE ports +```json +{ "jsonrpc" : "2.0" , + "method" : "powercycle" , + "params" : { + "serial" : , + "ports" : [ { "name" : "Ethernet1", "cycle" : 5000}, { "name" : "Ethernet8", "cycle" : 10000 } ], + "when" : Optional - + }, + "id" : +} +``` + +The device should answer: +```json +{ "jsonrpc" : "2.0" , + "result" : { + "serial" : , + "status" : { + "error" : 0 or an error number, + "text" : [ "Error 1" , "Error 2" ], + "when" :