Commit 1f96817d authored by PhiBo's avatar PhiBo 🚀

New function to get remote sensortype

parent 158300d9
......@@ -17,3 +17,15 @@ uint8_t ArduRPC_SensorNodeRemote::getMaxSensorCount()
return value;
}
uint16_t ArduRPC_SensorNodeRemote::getSensorType(uint8_t sensor_id)
{
uint8_t value;
this->_rpc->reset();
this->_rpc->writeRequest_uint8(sensor_id);
this->_rpc->call(this->_handler_id, 0x10);
value = this->_rpc->readResult_uint16();
return value;
}
......@@ -71,6 +71,8 @@ class ArduRPC_SensorNodeRemote : public ArduRPCRequestHandler
uint8_t
getMaxSensorCount();
uint16_t
getSensorType(uint8_t);
};
void ICACHE_FLASH_ATTR handleAPIHostname();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment