how to send data to device with REST API
Is this a bug or a feature request?
no
What did you expect?
What happened?
Response error
"error": "authentication failed: jwt parse error: token contains an invalid number of segments",
1.set jwt (copy from configure) in the right top input field 2.POST /api/devices/{device_queue_item.dev_eui}/queue
device_queue_item.dev_eui 3132373772377f04
body { "deviceQueueItem": { "confirmed": true, "data": "Vh+9et1/p95c7zJIoL03KRmXtsNsGyM2oEX+H2/xj68=", "devEUI": "3132373772377f04", "fCnt": 128, "fPort": 128, "jsonObject": "string" } } 3.Response error
it seem to i lost step claim. could you tell how to use it in detail?
What version are your using?
chirpstack-application-server_3.5.1_linux_amd64.tar.gz
How can your issue be reproduced?
Could you share your log output?
token : 123456789
Hi sslazio,
To use REST API, the best is to start with the RESTful JSON interface which should be available at https://<<your_chirpstack_app_server_url>>/api.
Then, there are three steps to make it work :
- If not already done, create a valid user using App server's web interface
- Retrieve a valid JWT using RESTful web interface
- Use this JWT to execute call to others api routes.
To get a JWT :
- Use the
/api/internal/loginroute (provide the correct login/password) - The JWT is provided in the server's response body :
- Copy the provided JWT to the right top input field of the page
- You're ready to go, the RESTful web page will provide your JWT when proceeding requests
Hope this will help you. If not already done, remember you must use the forum to get help from the community. Please close your issue as you made a support request in place of a bug or feature request.
Regards