Avatar for johnjones

johnjones

Member since Mar 2018 • Last active Dec 2019
  • 2 conversations
  • 2 comments

Most recent activity

  • in Interfacing
    Avatar for johnjones

    a while ago (2 years) I was part of a team that built a POC data logger based on espruino which the company decided that they would remain with the old C codebase and not update, they went out of business.. however I wanted to post some of the things we learned :

    Circular buffers : use this data structure

    log : Store time but transmit reading as a offset to the current time i.e. 567 seconds ago 3000 seconds ago do not think your time is the same as the receiver even if you know better

    graphs : use SVG to display graphs directly from the log or generate the bitmaps from the data each time, basically use the data rather than trying to do fancy rendering the users will render what they want in the format they want just give them the data.

    data store : sometimes store high and low and average of the 24 hours is enough...

    have fun with the lenovo watch's ;-)

    • 1 comment
    • 1,387 views
  • Avatar for johnjones

    Hi

    I'm new to espruino and I wondered if there was a way to expose the standard bluetooth services, for example the Battery Service ?

    I wish to use the scriptability for example to send IR codes when a temperature is met however don't want to step away from tooling/libraries for interacting with standard bluetooth.

    How would this best be achieved ?

    Thanks

    John Jones

Actions