Design and implementation of a JavaScript Sensor Framework API
Cao, Thi Thanh Nguyen (2017)
Cao, Thi Thanh Nguyen
2017
Master's Degree Programme in Information Technology
Tieto- ja sähkötekniikan tiedekunta - Faculty of Computing and Electrical Engineering
This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Hyväksymispäivämäärä
2017-03-08
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:tty-201701301093
https://urn.fi/URN:NBN:fi:tty-201701301093
Tiivistelmä
Along with the development of Internet of Things, an increasing number of sensors are being exposed on Web environment. However, most of the current sensor libraries are created for particular purposes. Therefore, they are incompatible with each other. This reality creates an inconvenient environment for developers to implement their Web ap- plications.
This thesis proposes a design and implementation of a sensor framework API which were written in JavaScript. This design was done based on analyses of different existing sensor APIs and the Generic Sensor API Specification of World Wide Web Consortium organization. The research was conducted by analyzing their open-source code and specifications available on their GitHub and websites. The objective was to review and compare advantages and drawbacks between different approaches. These information created a foundation for designing a good sensor framework API.
The implementation of the sensor framework has been written in JavaScript, built on the Node.js platform and tested on Raspberry Pi board Model B. Detailed instructions of using and extending the framework are presented in this thesis. Testing has been done with temperature sensors, including Raspberry Pi on-board temperature sensor, and two other DS18B20 sensors as well.
This thesis proposes a design and implementation of a sensor framework API which were written in JavaScript. This design was done based on analyses of different existing sensor APIs and the Generic Sensor API Specification of World Wide Web Consortium organization. The research was conducted by analyzing their open-source code and specifications available on their GitHub and websites. The objective was to review and compare advantages and drawbacks between different approaches. These information created a foundation for designing a good sensor framework API.
The implementation of the sensor framework has been written in JavaScript, built on the Node.js platform and tested on Raspberry Pi board Model B. Detailed instructions of using and extending the framework are presented in this thesis. Testing has been done with temperature sensors, including Raspberry Pi on-board temperature sensor, and two other DS18B20 sensors as well.