The task of the day was to change the current way of device data to be object oriented in Javascript. Learned about an old way to make Javascript objects (ES5), then learned about the new way to do so with classes (ES6). Created a device class in a separate device javascript file. Transferred the variables, changed the calls to the variables in the main sketch, and same with the functions. Everything is working! As well, changed all the var (function scope) variables to let (block scope). Pretty simple. This Device class will evolve over time. The next step is to process additional data logs from Bowie, and have them displayed on the map as instances of the object.
Archives
- March 2021 (2)
- January 2021 (2)
- December 2020 (10)
- November 2020 (7)
- October 2020 (12)
- April 2020 (5)
- March 2020 (11)
- February 2020 (18)
- January 2020 (23)
- December 2019 (18)
Categories
- Announce (1)
- Environment (1)
- News (107)
- Collaboration Logs (14)
- Field Logs (1)
- Progress Logs (53)
- Tech Logs (38)
Tags
aframe
ar
arduino
aws
aws iot
bowie
brain kit
build
cad
chassis
code
collab log
data
documentation
ec2
electronics
esp32
Field Log
imagery
ir camera
javascript
jitsi
kit code
kit log
leds
map
marker
microcontroller
mosquitto
motor kit
mqtt
operator interface kit
outdoors
power pack kit
python
schematic
sensor node
software
ssl
super bright lights kit
team
tech log
testing
uottawa
water