SWUpdate library to be used with RPC.

Fork of SWUpdate by David Smart

Committer:
sohaibqamar
Date:
Fri Oct 05 07:15:29 2018 +0000
Revision:
27:c7b275023106
To be used the SWUpdate with RPC.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sohaibqamar 27:c7b275023106 1 #ifndef __SWUPDATE_CLASS_H__
sohaibqamar 27:c7b275023106 2 #define __SWUPDATE_CLASS_H__
sohaibqamar 27:c7b275023106 3
sohaibqamar 27:c7b275023106 4 class UpdateFirmware
sohaibqamar 27:c7b275023106 5 {
sohaibqamar 27:c7b275023106 6 public:
sohaibqamar 27:c7b275023106 7 int UpdateCheck(void);
sohaibqamar 27:c7b275023106 8 void rebootMbed(void);
sohaibqamar 27:c7b275023106 9
sohaibqamar 27:c7b275023106 10 /*private:
sohaibqamar 27:c7b275023106 11 // ===================================================
sohaibqamar 27:c7b275023106 12 // SWUpdate
sohaibqamar 27:c7b275023106 13 // ===================================================
sohaibqamar 27:c7b275023106 14 // Server url to where the Software will be found.
sohaibqamar 27:c7b275023106 15 const char *url = "http://192.168.10.21:8000";
sohaibqamar 27:c7b275023106 16
sohaibqamar 27:c7b275023106 17 // Base filename for the software (e.g. if you save it as "abcdefg.bin", use "abcdefg" here)
sohaibqamar 27:c7b275023106 18 // Remember: some servers are case-sensitive!
sohaibqamar 27:c7b275023106 19 const char *name = "SWUP";*/
sohaibqamar 27:c7b275023106 20 // ===================================================
sohaibqamar 27:c7b275023106 21 };
sohaibqamar 27:c7b275023106 22
sohaibqamar 27:c7b275023106 23 #endif //__SWUPDATE_CLASS_H__