Skip to content

Commit 9196940

Browse files
changed Firmware upgrade
1 parent b50d589 commit 9196940

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Diff for: README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,11 @@ Application must provide these service functions if they supported:
450450
```
451451
Where **green** LED is main indication color (could be any supported color) and **red** is additional color (if present)
452452

453-
+ **OTA firmware update** - after command from Faceter application SDK will download and save firmware update
454-
to '/tmp' directory and then call ControlFunction with code **ControlCodeUpdateFirmware** and path to the file as param
453+
+ **OTA firmware update** - after command from Faceter application SDK will call ControlFunction with code **ControlCodeUpdateFirmware** and URL to the file on server as param
455454
```
456455
case ControlCodeUpdateFirmware: {
457-
//upgrade firmware from file in tmp dir
458-
char* firmwareUpdate = (char*)param;
456+
//upgrade firmware URL
457+
const char* firmwareUpdateUrl = (const char*)param;
459458
break;
460459
}
461460
```

Diff for: integration_sample.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ ClientStatusCode ControlHandler(ClientControlCode controlCode, void* param)
136136
break;
137137
}
138138
case ControlCodeUpdateFirmware: {
139-
//upgrade firmware from file in tmp dir
140-
char* firmwareUpdate = (char*)param;
139+
//URL to firmware update file
140+
const char* firmwareUpdateUrl = (const char*)param;
141141
break;
142142
}
143143
case ControlCodeRebootCamera: {

0 commit comments

Comments
 (0)