Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SWUpdate by
Revision 4:1a3656ae80dc, committed 2014-06-14
- Comitter:
- WiredHome
- Date:
- Sat Jun 14 18:23:04 2014 +0000
- Parent:
- 3:c69fff55fc60
- Child:
- 5:e10f18e9b93a
- Commit message:
- doc update
Changed in this revision
| SWUpdate.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/SWUpdate.h Sat Jun 14 18:18:28 2014 +0000
+++ b/SWUpdate.h Sat Jun 14 18:23:04 2014 +0000
@@ -1,4 +1,5 @@
-
+/// Firmware Over The Air (FOTA) Update.
+///
#include "mbed.h"
#ifndef SWUPDATE_H
@@ -32,9 +33,8 @@
///
/// You can create the server "myprog.txt" file with this perl script (not
/// every detail is shown, but it should be easy to figure out).
-///
+/// <<code>>
/// # Read current .txt file
-/// <<code>>
/// open (FT, "<$txt") || die("Can't read $txt.");
/// $ver = <FT>; chomp $ver; close FT;
/// $ver =~ s/(\d+),.*/$1/;
@@ -49,7 +49,7 @@
/// $byteCount++;
/// }
/// close FB;
-/// # Advance version
+/// # Advance version number and write the new .txt file
/// $ver++; print "$ver Checksum is $cksum over $byteCount bytes.\n";
/// open (FT, ">$txt") || die("Can't write update to $txt.");
/// printf(FT "%d,%d,%d\n", $ver, $cksum,$byteCount);
