Montior Packet⚓︎
The monitor packet holds the information about the unit and the digital IO;
- The serial number, os version, and a timestamp are reported.
- The digital inputs have a state and a counter value.
- The outputs have a state.
The monitor packet is an unsolictied message that gets sent whenever the I/O on the JNIOR gets updated. It can also be requsted manually when needed.
Here is an example monitor packet:
The order of the elements in the JSON string are not guaranteed. Line breaks shown below are for display purposes only. They are not present in the JSON string that is returned.
{
"Message":"Monitor",
"Serial Number":622120001,
"Model":"410",
"Version":"v2.5.2",
"Inputs":[
{"Count":1,"State":1},{"Count":1,"State":1},
{"Count":1,"State":1},{"Count":1,"State":1},
{"Count":1,"State":1},{"Count":1,"State":1},
{"Count":1,"State":1},{"Count":1,"State":1}
],
"Outputs":[
{"State":0},{"State":1},{"State":0},{"State":0},
{"State":0},{"State":0},{"State":0},{"State":0},
{"State":0},{"State":0},{"State":0},{"State":0}
]
"Timestamp":1771132520471,
}
Once the monitor packet is obtained from a connection, an IO change, a Request Monitor Packet function call, or through the callback mechanism, you can get several bits of information about the unit. Information like the Serial Number, Model, Firmware Version, and current timestamp are all available via the monitor packet.
To get access to this information you should parse the monitor packet string as a JSON object in your language of choice. You will then be able to do something like the following examples...
Request Monitor Packet⚓︎
Version 26.0.0 - May ##, 2026
There may be a situation where you want to refresh the Monitor Packet and request that a new one gets sent. To do this you will use the Request Monitor Packet call.
1 | |
1 2 | |
1 2 | |
1 2 | |
Monitor Packet Callback⚓︎
Version 26.0.0 - May ##, 2026
You can add a callback that will be executed when ever a monitor packet is received. To do that you will need to implement the following
1 2 3 4 5 6 7 8 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | |
1 2 3 4 5 6 7 8 9 10 11 | |
1 2 3 4 5 6 7 8 9 10 | |
Unit Infomation⚓︎
Version 26.0.0 - May ##, 2026
Once the connection is made, and authenticated, a Monitor Packet will be sent. The Monitor Packet contains information, not only abobut the I/O, but about the unit as well. Information like the serial number, the model, the version, and the units current time and all included.
The following calls are available to get you this infomation:
1 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | |
Possible Status Returns:
- INVALID_UUID: If a JMP Connection is not found for the given UUID