Response from device should be coming in the "result" attribute of the position object, so you can get it through API, but it's not supported for all protocols. It's also not possible to get it as a part of command API response.
Ok, thanks.
I am using the Ulbotech protocol but I cannot see any "result" attribute:
{"hdop":9999,"ignition":false,"status":0,"odometer":2524915,"adc0":965,"adc1":2268,"adc2":525,"geofenceIn":0,"geofenceAlarm":0,"event":240,"eventMask":512,"ip":"185.74.208.99","distance":0.0,"totalDistance":1899784.59}
I can see in the traccar.log that the command was sent at this time.
Does the Ulbotech protocol not support the "result" attribute?
Traccar doesn't support result attribute for Ulbotech protocol at the moment.
I am using minifinder protocol & sending the custom commands via GPRS but i am not getting any notifications on the web interface about the response. I can see the HEX response in the log file but its not showing to the interface. i have enabled all notifications
Do you see response in attributes? Can we see logs?
Hi @Anton, I don't see any response in the attributes. The response i am getting is
{"id":2,"attributes":{"data":"123456A1,7055001772"},"deviceId":81,"type":"custom","textChannel":false,"description":"phone1"}
The log on the server is
2018-10-25 09:46:19 DEBUG: [41197921: 5062 > 199.47.48.41] HEX: 31323334353641312c37303535303031373732
2018-10-25 09:46:24 DEBUG: [41197921: 5062 < 199.47.48.41] HEX: 21332c6f6b3b
2018-10-25 09:47:02 INFO: [5C6FEDDA] connected
Any help would be really appreciated. Thanks
I'm asking about device response, not API response.
The device is replying with !3,ok;
which i took from Traccar Log & decoded it via https://www.traccar.org/hex-decoder/
I have added support for command result:
https://github.com/traccar/traccar/commit/464348b91591a684bc16cf3c207f38ca3f923daa
Thank you @Anton. I really appreciate your help.
As Agam I am using minifinder protocol & sending custom commands via GPRS. I don`t ask for the location, but for the SOS numbers. The device replies with !4, ... (the numbers). I could see that in Traccar Log. I also see the new implementation in the last Source, where Agams !3 is stored as last position. For type.equals("4") there is no implementation. However is there a way to get the reponse of the device as response in the web API?
Create a request for it on GitHub, provide samples and documentation.
Hello,
Is is possible to get some vales back from the response from the API?
When I post:
I get this response using the ulbotech protocol:
In the traccar logfile I can see the value in the response:
Converting this to text:
Command:
(*TS01,MGR#)
Response in logfile
(*TS01,868323025245751,123759100317,MGR:2503617#)
But is it possible to get the response using the API?