The question is answered, right answer was accepted
Hello,
in our application we would like to give our administrator simple way to show detail of device in sigfox backend. Typical usecase is: Admin investigating some problems and need to check status in sigfox backend. We want to have direct link to device info page in our web application. To give him fast and easy way to check it... (also direct link to deviceType).
E.g.: Device info page:
https://backend.sigfox.com/devicetype/5a96933290xxxx/info
E.g.: DeviceType info page:
https://backend.sigfox.com/device/368xxxx/info
Unfortunatelly, 368xxxx in URL is not a hexId. It is sigfox internal ID which is not published anwhere. It is not readable even trought REST API.
Q: is there a way to link to info pages? by hexId? or with cooperation with REST API ?
Answer by VodolanJ · Apr 11 at 11:11 AM
SOLVED:
... I do not know nor understand why ... but experimentally... my friend (big thanks) realized that what I called internal ID is simple decadical value of hexId.
So, link to device information page is
https://backend.sigfox.com/device/<Long.parseLong(hexID, 16)>/info
Answer by Christopheallasia · Apr 11 at 07:53 AM
Hello @VodolanJ
Indeed you can use REST API in order display some information from the backend as device's information, device type page ect.
If you have an access to the backend you can create your own API with associated credentials :
- All Devices ID/PAC for a device type and/or :
GET https://backend.sigfox.com/api/devicetypes/{devicetype-id}/id-pac
- Device type information:
GET https://backend.sigfox.com/api/devicetypes/{devicetype-id}
Answer by VodolanJ · Apr 11 at 07:57 AM
Yes, I know.
But it is not what we want. We want a link to human readable backend UI. Not a REST api returning json... it is shortcut for administrator investigating problems with a device. He will check last messages, location, ...
Answer by Christopheallasia · Apr 11 at 08:01 AM
Hello @VodolanJ,
Unfortunately there is no human readable backend UI regarding API request. It's not the aim of the backend...
Sorry for that
Answer by VodolanJ · Apr 11 at 08:08 AM
... we are not understand each other...
There already IS info page (human readable):
https://backend.sigfox.com/device/368xxxx/info
And I want to link to this existing page with information I have about this device. The basic natural ID of device is its own HEX_ID.
Problem is that ID used in URL 368xxxx is not a device's hexID, it is internal sigfox id.
What I am asking is whether there is another way to get to this page with hexID.
something like: https://backend.sigfox.com/device/<hexID>/info
OR
is there a way how to translate HEX_ID to internal sigfox ID (368xxxx) ?
Answer by Christopheallasia · Apr 11 at 08:24 AM
Hello @VodolanJ
Oh ok , sorry for misunderstanding,
There is no way to translate this directly in the backend, and i don't think it will be a priority for the backend team.
For now you need to use the decimal ID in URL..
Can I store my data from sigfox backend to an MySQL server database? 2 Answers
Unable to connect device to backend 1 Answer
Adruino sends data to sigfox but is not in hexidecimal, the data is in what format? 1 Answer
Problems with Arduino MKRFOX1200 registering process 2 Answers
Delete Devices from Sigfox Backend 2 Answers