Skip to content

KeithLaiKB/java_try_zigbee2mqtt_smarthome1

Repository files navigation

java_try_zigbee2mqtt_smarthome1

I tried diffrent design

now I tried domain-driven design

create a thread one time running to sent publish_get message to the IoT device,
because initially, if serviceA want the IoT device status,
but now the IoT device didn't send the topic(because IoT device would send the notification in interval)
in this case, you can use publish_get message to notify the IoT device to send the status immediately right now to the broker image

create a thread all time running to receive the notification(status) of IoT device and save the status in database image

create a thread one time running to get the status of the IoT device from the database image

intergration of publish_get message and save the IoT device status into database image

intergration get the IoT device status from database and update the status and send to the broker image

About

use hivemqtt client, zigbee2mqtt

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages