Skip to content

MobileLifeCentre/rFlea_JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

rFlea_JavaScript

JavaScript library to work with rFlea Webapp.

This is a plain example, minimal, on how to set up your webapp and get the messages from the rFlea Arduino boards. In the rflea.js you will set up first the conections and then add code if needed. The steps to set up your plain exmaple are as follow:

  1. From the header of the rflea.js file set up the following parameters:
  • The ID or unique MAC from your rFlea (check out rFlea_Arduino repository to learn how to get your rFlea number).
  • The frequency that your packages will be received. This number should be power of 2 (1,2,4,8,16,32,64) being 64 the maximum. And it should be at least as big, as the one you set up in your rFlea Arduino board.
  1. Copy the two files from the repository and put them in your webserver. In case you don't have one, you can use your dropbox public folder for that. Create a folder in your public folder and copy/paste the two files. Right click in rFlea.html and selsct "Copy Public Link". Add this adress to your rFlea Webapp.

Once the code is ready, you can get the data in you html file or, if needed add your own code in the area designed for that in the rflea.js file.

About

JavaScript library to work with rFlea Webapp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published