Skip to content

Commit 444d0b4

Browse files
committed
Changed: CameraController is now using defined Strings from SinricProStrings.h
1 parent f5f32ac commit 444d0b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Capabilities/CameraController.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ int CameraController<T>::sendSnapshot(uint8_t* buffer, size_t len) {
6363
client.setInsecure();
6464

6565
HTTPClient http;
66-
if (!http.begin(client, SINRICPRO_CAMERA_URL, 443, "/snapshot", true)) return -1;
66+
if (!http.begin(client, SINRICPRO_CAMERA_URL, 443, SINRICPRO_CAMERA_PATH, true)) return -1;
6767

6868
const String& deviceId = device->getDeviceId();
6969
String timestamp = String(device->getTimestamp());
7070
String signature = device->sign(deviceId+timestamp);
7171

72-
http.addHeader("deviceid", deviceId);
73-
http.addHeader("timestamp", timestamp);
74-
http.addHeader("signature", signature);
72+
http.addHeader(FSTR_SINRICPRO_deviceId, deviceId);
73+
http.addHeader(FSTR_SINRICPRO_timestamp, timestamp);
74+
http.addHeader(FSTR_SINRICPRO_signature, signature);
7575

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

0 commit comments

Comments
 (0)