跳至内容

meaning of isRelayOn in TextMessage of messageContent.

MGenu-1832
原帖作者

What is the meaning of isRelayOn in TextMessage of messageContent, if I do call api Add with get TextMessage as example:

api.call("Add", {

"typeName": "TextMessage",

"entity": {

"device": {

"id": "***"

},

"messageContent": {

"contentType": "IoxOutput",

"isRelayOn": false

},

"isDirectionToVehicle": true

}

}, function(result) {

console. log("Done: ", result);

}, function(e) {

console. error("Failed:", e);

});

what would happen?

 

加入讨论

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

最佳答案

EishiFUN
社区管理员

Hello @MGenu-1832​ ,

 

Thank you for asking your question in our community. The IOX Output and IOX NFC Reader both have a built in electronic relay switch. It's basically an 'on / off' switch for whatever it is hardwired to on installation. That property tells you the current status of that switch.

 

If you have any other questions about this feel free to reach out. We are here to help.

 

Have a great day!

Eishi FUN

5 条回复

EishiFUN
社区管理员

Hello @MGenu-1832​ ,

 

Thank you for asking your question in our community. The IOX Output and IOX NFC Reader both have a built in electronic relay switch. It's basically an 'on / off' switch for whatever it is hardwired to on installation. That property tells you the current status of that switch.

 

If you have any other questions about this feel free to reach out. We are here to help.

 

Have a great day!

Eishi FUN

MGenu-1832
原帖作者

@EishiFUN​ 

Thank you for your answer.If i send an Add/TextMessage call with :"messageContent": {

"contentType": "IoxOutput",

"isRelayOn": false

},

it will cut the relay and extend or stop the vehicle??

 

EishiFUN
社区管理员

No it would set the device IOX-OUTPUT relay to off. Any outcome would be specific to function with the connected IOX device (if any), with no inherent relationship to the operation of the vehicle itself.

 

Let me know if you have other questions about this.

MGenu-1832
原帖作者

@EishiFUN​ 

Thank you for your answer. So is there a way to turn on or off the engine of a vehicle with an api call?

 

EishiFUN
社区管理员

No, none that I am aware of.

还有其他问题吗?