02.09.2024, 10:14
Auth header can be added like this:
Sending measurements is done by POST'ing JSON via HTTPS. There are many similar examples in the forum.
https://cumulocity.com/docs/concepts/dom...asurements
https://cumulocity.com/api/core/#tag/Measurements
Code:
require('encdec')
auth = 't0071234/testuser:secret123'
headers = {
Authorization = 'Basic ' .. encdec.base64enc(auth),
}
Sending measurements is done by POST'ing JSON via HTTPS. There are many similar examples in the forum.
https://cumulocity.com/docs/concepts/dom...asurements
https://cumulocity.com/api/core/#tag/Measurements