Summary
MongoDB Connector it is the component which is responsible for managing connection, sending, receiving messages from a Mongo database in a Niagara station.
This component is a RealTimeConnector, this page will only contain information specific to this component.
Implementation
Properties
{ deviceId:"<DeviceId>" pointId: "<PointId>", type: "<MessageType>" // POINT_ACTION, SEND_HISTORIES payload:{ action: "<PointAction>", value: <Value> } } |
<DeviceId>: the device id in which the point is associated
<PointId>: the id of the point where the action will executed
<MessageType>: The type of the message. ex: Point_ACTION, SEND_HISTORIES
<PointAction>: the point action ex: SET,AUTO,EMERGENCY, AUTO_EMERGENCY, OVERRIDE
<Value>: the point value it should match the point type (Bool point value = true/false)
An ACK field will be added to the document once the message has been received by the connector, but it doesn't mean that the value has been applied to the point level. If the value is correctly applied, then you should see the change in the point's collection. This is how we avoid loops and how we are certain that the value was correctly applied to the field.