The Live Objects Javascript decoder test framework helps you create and test the javascript payload decoders for your IoT devices, in order to ease your integration with the Live Objects service.
Javascript samples for binary decoding are also provided for a quick startup.
JUnit tests and assertions help you validate the payload decoding.
When your javascript decoder is ready, you can contact the Orange Live Objects team for the script acceptance (validation) and provisioning. Please prefer sending these items to [email protected] without attachment in your email. Use file transfer services or repository to provide a link in your message.
Pre-requisite : in order to use this framework, the following components must be installed on your computer :
Content :
lo-js-decoder-test-framework-samples directory : a maven project containing Javascript decoder samples. The samples can be run in your favourite IDE (IntelliJ is recommended) or using the "mvn test" command.
lib directory: contains a jar with utility libraries for the lo-js-decoder-test-framework-samples project. This library must be installed in your maven repository with the command (to be run from the lib directory) :
mvn install:install-file -Dfile="<your absolute path to lo-js-decoder-test-framework-utils-3.0.1-jar-with-dependencies.jar>" -DgroupId="com.orange.lo" -DartifactId="lo-js-decoder-test-framework-utils" -Dversion="3.0.1" -Dpackaging="jar"
cd decoder-preliminary-acceptance
npm install
node main.js -f <path-to-javascript-decoder>This software is under the BSD-3-Clause