Generate Error Messages #419
Replies: 3 comments 1 reply
-
I understand that under certain conditions you would like the request to return an error rather than be accepted. Try this gist and see if that's what you are trying to accomplish. |
Beta Was this translation helpful? Give feedback.
-
Ah, I think I misread your original request. As a library designed to just support device-to-device communications using the BACnet protocol, there is no "user". If Yabe supports event notifications that can include descriptive text (see 13.8 ConfirmedEventNotification Service) then the application could be updated to send an event notification when the value goes into "fault". If you would like to have a user interface for this application (like maybe a web server that displays a Gitter/Slack conversation window? or build in an IRC server and connect using a client like HexChat?) that is beyond the scope of this library. |
Beta Was this translation helpful? Give feedback.
-
No worries Joel, I have not been very clear in what I am attempting to achieve. I essentially am creating a device to replicate/mirror another device.
|
Beta Was this translation helpful? Give feedback.
-
I have a virtual device that I want to generate error messages for from time to time but don't want to change the properties of the objects.
For example lets say I have a property that is mutable =True, but under certain conditions it should not be so. I want the user to be able to attempt to write to the object (it should be allowed because mutable = True) but after checking for conditions I want to return an error. There is no iocb.ioError so I want to 'generate'/display an error that I created.
Is there a feasible way of doing this?
Beta Was this translation helpful? Give feedback.
All reactions