Web Camera for mbed-os. When you use this program, we judge you have agreed to the following contents. https://developer.mbed.org/teams/Renesas/wiki/About-LICENSE
Dependencies: HttpServer_snapshot_mbed-os LWIPBP3595Interface_STA_for_mbed-os RomRamBlockDevice mbed-rpc
Fork of GR-Boards_WebCamera by
このサンプルは 「GR-LYCHEE」ではじめる電子工作 で紹介しています。
出版時と内容が異ならないよう、各ライブラリはアップデートせずに使用してください。
このサンプルの最新バージョンは下記から入手できます。最新バージョンは本の内容と一部処理が異なります。
https://github.com/d-kato/GR-Boards_WebCamera
Revision 16:b5469a6226c7, committed 2016-06-02
- Comitter:
- dkato
- Date:
- Thu Jun 02 05:39:35 2016 +0000
- Parent:
- 15:eac4c3711aab
- Child:
- 17:2648bcf3f2cc
- Commit message:
- Fix TerminalWrite.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jun 01 07:35:41 2016 +0000
+++ b/main.cpp Thu Jun 02 05:39:35 2016 +0000
@@ -294,8 +294,15 @@
}
static void TerminalWrite(Arguments* arg, Reply* r) {
- printf("touch count=%s, %s\n", arg->argv[0], arg->argv[1]);
- r->putData<const char*>("ok");
+ if ((arg != NULL) && (r != NULL)) {
+ for (int i = 0; i < arg->argc; i++) {
+ if (arg->argv[i] != NULL) {
+ printf("%s", arg->argv[i]);
+ }
+ }
+ printf("\n");
+ r->putData<const char*>("ok");
+ }
}
static void mount_romramfs(void) {
