added urlhandler for devices.

This commit is contained in:
Martin Preuss
2023-08-10 19:28:10 +02:00
parent ec745f5cc9
commit 487e506a01
7 changed files with 395 additions and 3 deletions

View File

@@ -143,6 +143,13 @@ AQH_DEVICE *AQH_Storage_GetDeviceById(const AQH_STORAGE *sto, uint64_t id)
AQH_DEVICE *AQH_Storage_GetDeviceByName(const AQH_STORAGE *sto, const char *s)
{
return sto?AQH_Device_List_GetByName(sto->deviceList, s):NULL;
}
void AQH_Storage_AddMqttTopic(AQH_STORAGE *sto, AQH_MQTT_TOPIC *t)
{
if (sto && t) {