NubeIO / driver-bacnet

0 stars 2 forks source link

bacnet-client (bacnet master) add support MSI, MSO, MSV #57

Closed NubeDev closed 1 year ago

NubeDev commented 1 year ago
Multistate Input     13
Multistate Output 14
Multistate Value     19 
shomaglasang commented 1 year ago

hi mate @NubeDev I will use the following format for the default object name. MSI_SPARE MSOSPARE MSV_SPARE

ex:

MSI_1_SPARE

The max number of objects will be configurable from yaml file, e.g.

msi_max: 5
mso_max: 10
msv_max: 10
NubeDev commented 1 year ago

We only need them for master not server

shomaglasang commented 1 year ago

Do we need to change the indexing? The first object instance starts at 0. Should we change it to 1?

NubeDev commented 1 year ago

Indexing for what?

We are not doing the server, just master its for reading and writing

shomaglasang commented 1 year ago

Example to read the present value of the first MSI object, the bacnet command would be

bacrp 1234 13 0 85

We changed the indexing for AI, AO, etc to start at 1. So this would

bacrp 1234 13 1 85

Should we change this? So in the MQTT command, the index will be 1 like

{"objectType":"13","objectInstance":"1","property":"85","deviceInstance":"5678","mac":"10.104.0.11:47900"}
shomaglasang commented 1 year ago

hi mate @NubeDev I added this in v0.0.45. Can you pls check if you can and pls Let me know if I missed anything. Thanks