Skip to content

http client app in mongoose os that calls http endpoints via RPCs and CRON jobs and writes response body to file.

License

Notifications You must be signed in to change notification settings

ukhan717/mos-http-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Download URL

Fetches data from http endpoint based on cron job or endpoint specified in an RPC.

Overview

Makes use of some very interesting features provided by mongoose os, calls http endpoints and writes the response data to a file.

Cron jobs are triggered periodically and RPCs could be called at any point in time to perform the http fetch.

By using cron format for time specification, the program logs the outcome of each request performed in a file.

To trigger call to http endpoint issue this command mos call http_fetch_handler ‘{“url”: “http://mongoose-os.com/downloads/mos/version.json”, “file”: “x.json”}

Code is tested on ESP8266

About

http client app in mongoose os that calls http endpoints via RPCs and CRON jobs and writes response body to file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages