Dear TTN/TTS fans,
I migrated my Greenhouse Climate Device from V2 to V3 successfully. Data are visible at the TTS application console as expected.
The access to the V3 Storage Integration data by Curl unfortunately not successfully.
I used this example, found in the TTS documentation:
$ curl -G âhttps://thethings.example.com/api/v3/as/applications/app1/devices/dev1/packages/storage/uplink_messageâ
-H âAuthorization: Bearer $API_KEYâ
-H âAccept: text/event-streamâ
-d âlimit=10â
-d âafter=2020-08-20T00:00:00Zâ
-d âfield_mask=up.uplink_message.decoded_payloadâ
and from the storage integration page:
I generated the API_KEY adapted the Curl command as follows:
â-X GET âhttps://eu1.cloud.thethings.network/api/v3/as/api/v3/as/applications/{application-id}/devices/{device-id}/packages/storage/uplink_messageâ -H âAccept: text/event-streamâ -H âAuthorization: Bearer NNSXS.xxx.xxxâ -d âlimit=10â -d âafter=2021-06-01T00:00:00Zââ;
The call was executed on an âHomeMaticâ CCU3 by C++ script with following result:
{âcodeâ:12,âmessageâ:âNot Implementedâ}
The available entries in the forum in this regard were unfortunately not helpful for me, and I found no additional information for this return code in the TTS documentation.
What do I wrong? I tried also skipping the limit, after and field mask parametersâŚ
Thanks a lot for helping in advance,
Peter
p.s.: This was the V2 Curl command, which was running without any problems:
â-X GET --header âAccept: application/jsonâ --header 'Authorization: key ttn-account-v2.xxxâ âhttps://{application-id}.data.thethingsnetwork.org/api/v2/query/{device-id}ââ;