Skip to content

Commit 484b717

Browse files
authored
Merge pull request #410 from sivar2311/master
changed "timestamp" -> "createdAt"
2 parents 7237966 + 92ae55c commit 484b717

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Capabilities/CameraController.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ int CameraController<T>::sendSnapshot(uint8_t* buffer, size_t len) {
6666
if (!http.begin(client, SINRICPRO_CAMERA_URL, 443, SINRICPRO_CAMERA_PATH, true)) return -1;
6767

6868
const String& deviceId = device->getDeviceId();
69-
String timestamp = String(device->getTimestamp());
70-
String signature = device->sign(deviceId+timestamp);
69+
String createdAt = String(device->getTimestamp());
70+
String signature = device->sign(deviceId+createdAt);
7171

7272
http.addHeader(FSTR_SINRICPRO_deviceId, deviceId);
73-
http.addHeader(FSTR_SINRICPRO_timestamp, timestamp);
73+
http.addHeader(FSTR_SINRICPRO_createdAt, createdAt);
7474
http.addHeader(FSTR_SINRICPRO_signature, signature);
7575

7676
int resCode = http.POST(buffer, len);

0 commit comments

Comments
 (0)