- From: Dave Raggett <dsr@w3.org>
- Date: Mon, 12 Feb 2018 16:24:58 +0100
- To: Danny Ayers <danny.ayers@gmail.com>
- Cc: public-wot-wg@w3.org
- Message-Id: <0BE850D6-A9AF-4166-BDAB-881E812B4A62@w3.org>
Hi Danny, It all depends on the device, how it is powered and what technologies it supports. Some devices are permanently powered, but others may run off small batteries or even ambient power sources, and need to carefully conserve power. So it depends on whether your Arduino is running off a mains operated power supply or a battery, and if so how long the battery needs to last. Conserving power, means staying asleep most of the time, e.g. turning on briefly every few minutes to take sensor reading and send it to another device. Operating the Arduino as a server when it is frequently asleep may not be very practical, and it could be easier for the device to act as a client that connects to a server on another device to transferred buffered sensor readings. From a programming point of view, the ESP8266 makes it easy to open a TCP/IP stream and send a sequence of messages. For security, you also need to deal with encryption and key exchanges. A secure means to support firmware updates is needed and can be a significant drain on battery life. So lots to deal with ... > On 9 Feb 2018, at 22:49, Danny Ayers <danny.ayers@gmail.com> wrote: > > So, I'm new here. Please help me. > > Imagine I've got a sensor doing voltages into an ESP8266 gadget, behind an Arduino. Seems to be the cheapest way, and then using web tech. > > That thing now has a HTTP server. New to me the cards, but it worked so good so easily, once I read other peoples blogs, howtos. > But I want as fast as possible, ok buffers, but fasty, records from sensors to put on the web. > My feeling is that the device there should provide grand RDF stuff. > Squirt a load of data - but what is best for a stream in these circumstances? > I really don't know: > > <sample> > godforsaken:value "10" . > > > I'm sure you are ahead, what is the current state of the art? > > my notes - https://elfquake.wordpress.com/ <https://elfquake.wordpress.com/> > > Cheers, > Danny. > Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett W3C Data Activity Lead & W3C champion for the Web of things
Received on Monday, 12 February 2018 15:25:34 UTC