Skip to content

Latest commit

 

History

History
80 lines (53 loc) · 2.14 KB

rupd.md

File metadata and controls

80 lines (53 loc) · 2.14 KB

H4P Logo

H4P_RemoteUpdate

Shortname rupd

Updates the app with a later version from a remote update server. Before using this plugin, users should read both

Users may also find this Youtube video helpful, look for the red label "Expert" series 1. Running a remote update server on Nide-RED helpful


Contents


Usage

H4P_RemoteUpdate rupd(...

This plugin is a "singleton" - there may be only one single instance of it in the app. It may be instantiated as any name the user chooses, prefix all API calls below with than name.

Dependencies

H4P_WiFi

Commands Added

  • h4/rupd/both // start FSS update, followed by FW update process
  • h4/rupd/fw // start firmware update process
  • h4/rupd/fs // start file sytem image update process

Service Commands

stop / start have no effect


API

Constructor

// Constructor
//
// url remote server format "http://host:port/path/?a=b..." port, path, query all optional
// e.g. "http://myserver.local/update"
H4P_RemoteUpdate(const string& url="");
//
void both(); // start FSS update, followed by FW update process
void fs(); // start firmware update process
void fw(); // start file sytem image update process

Many of the sketches in the XTRAS folder show H4P_RemoteUpdate in use.


(c) 2021 Phil Bowles [email protected]