Closed NubeDev closed 1 year ago
Goal is to be able to run a Server AND a Master at the same time. This enabled 2 devices to have two-way communication with each other, i.e. 2 of our Rubix-Computes.
We will need to do a smaller scale test first to make sure this will work on the same port and that messages get in and out still. The main requirement is the you can do master requests but the server still has to run and be readable
@NubeDev @Shiny380 mate so basically the bacnet server subscribes to MQTT topics. And these topics correspond to commands (e.g. read present values of an object instance, write object name of an instance ). And the response/result is published over MQTT, perhaps in a different topic so the server will not read them back. Am I correct mate? The published value from the server will be in json format.
the idea would be that we could send the bacnet stack a message over MQTT and then MQTT would publish the result back on a topic
we need to resue the same bacnet instance so we can run both services on the same ethenet port
example send a whois
publish to a topic
bacnet/whois/send
{network:eth0, timeout:2000}basic scope
whois
./bacwi
object list
read present values
or priorty send a list and responsed back with the values [ai1, ai2]write present values
or priorty send a list and responsed back with the values {{point:ao1, pri:16}}add better support for read
send json body
add better support for write
send json body
write PV
write priority