NubeIO / driver-bacnet

0 stars 2 forks source link

get update name of BO #1

Closed NubeDev closed 2 years ago

NubeDev commented 2 years ago

same as we can update the PROP_PRESENT_VALUE https://github.com/bacnet-stack/bacnet-stack/blob/ba0cbc1fb8768ff7b915904d836bd29ba32ed64b/src/bacnet/basic/object/bo.c#L365 we want to be able to update this name aswell PROP_OBJECT_NAME https://github.com/bacnet-stack/bacnet-stack/blob/ba0cbc1fb8768ff7b915904d836bd29ba32ed64b/src/bacnet/basic/object/bo.c#L434

see example of being able to write a string to update the bacnet sever name

start a new server with device-id 2508

cd bacnet-stack-bacnet-stack-1.0.0/bin
./bacserv 2508

read the server name

./bacrp 2508 8 2508 77

write the server name

./bacwp 2508 8 2508 77 0 -1 7 test2

read the point name

./bacrp 2508 4 1 77

write the server name see the errorBACnet Error: property: write-access-denied`

aidan@aidan-ThinkPad-T480:~/code/bacnet-stack-bacnet-stack-1.0.0/bin$ ./bacwp 2508 4 1 77 0 -1 7 new-bo-name
BACnet Error: property: write-access-denied
aidan@aidan-ThinkPad-T480:~/code/bacnet-stack-bacnet-stack-1.0.0/bin$ 
shomaglasang commented 2 years ago

Taking on this @NubeDev . Thanks

shomaglasang commented 2 years ago

@NubeDev do I need some permissions to update/resolve the ticket?

shomaglasang commented 2 years ago

@NubeDev here's the updated bo.c file. Just unzip and drop on src/bacnet/basic/object/bo.c. bo.zip

shomaglasang commented 2 years ago

Will mark this as completed @NubeDev . Ready for the next one.