NubeIO / driver-bacnet

0 stars 2 forks source link

Change topic #2

Closed NubeDev closed 2 years ago

NubeDev commented 2 years ago

Change topic to

bacnet/objectType/objectID/name/
bacnet/objectType/objectID/pv/

example

bacnet/bo/22/name/my new name
bacnet/bo/22/pv/233.3456
shomaglasang commented 2 years ago

@NubeDev in here "bacnet/objectType/objectID/name", is objectID actually the deviceID ?

NubeDev commented 2 years ago

No it's the point object id The broker is just on localhost so we don't care about the device

shomaglasang commented 2 years ago

Is that that value 12345 in this instance?

./bin/bacserv 12345
BACnet Server Demo
BACnet Stack Version 1.0.0
BACnet Device ID: 12345
Max APDU: 1476
BACnet Device Name: SimpleServer

Or the value 1 in this update command?

./bin/bacwp 1234 4 1 77 0 -1 7 test123
NubeDev commented 2 years ago

no its for the point not the device so its this the 1 ./bin/bacwp 1234 4 1 77 0 -1 7 test123

object_instance

https://github.com/bacnet-stack/bacnet-stack/blob/810bfefb344d9919e11f767937d07b9521ff18bc/src/bacnet/basic/object/bo.c#L104

shomaglasang commented 2 years ago

got it, it's the object instance id. thanks mate

shomaglasang commented 2 years ago

@NubeDev this fixed now. Changes pushed to the repo. Kindly change mate and let me know. thanks

shomaglasang commented 2 years ago

Closing this.