platisd / indoor-navigation-system

[WIP] An indoor navigation system to guide users towards their colleagues' desks
Apache License 2.0
15 stars 13 forks source link

Add wifi module logic #64

Closed platisd closed 6 years ago

platisd commented 6 years ago

Description

This feature adds the initial Wifi module business logic. Particularly, the submitted code shall:

Server output upon successful transmission (where I have two access points and obfuscated their MAC addresses):

[2017-12-03 14:21:47.993] [INS-Server] [debug] + IndoorNavigationService::SetReceivedSignalStrengths [2017-12-03 14:21:47.993] [INS-Server] [debug] + DataStore::CreateDeviceTable [2017-12-03 14:21:47.993] [INS-Server] [debug] CREATE TABLE IF NOT EXISTS dev_1(id INTEGER PRIMARY KEY,mac_addr TEXT, rssi REAL,timestamp datatime default current_timestamp); [2017-12-03 14:21:47.993] [INS-Server] [info] SQL executed successfully [2017-12-03 14:21:47.993] [INS-Server] [debug] - DataStore::CreateDeviceTable [2017-12-03 14:21:47.993] [INS-Server] [debug] + DataStore::InsertRSSIReadings [2017-12-03 14:21:47.993] [INS-Server] [debug] INSERT INTO dev_1 (mac_addr, rssi) VALUES('AA:AA:AA:AA:AA:5C',-73),('AA:AA:AA:AA:AA:F0',-64); [2017-12-03 14:21:48.097] [INS-Server] [info] SQL executed successfully [2017-12-03 14:21:48.097] [INS-Server] [debug] - DataStore::InsertRSSIReadings [2017-12-03 14:21:48.097] [INS-Server] [debug] - IndoorNavigationService::SetReceivedSignalStrengths

Solved issue(s)

Fixes #44

codecov[bot] commented 6 years ago

Codecov Report

Merging #64 into dev will increase coverage by 4.86%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev      #64      +/-   ##
==========================================
+ Coverage   68.39%   73.25%   +4.86%     
==========================================
  Files           9       10       +1     
  Lines         367      430      +63     
==========================================
+ Hits          251      315      +64     
+ Misses        116      115       -1
Impacted Files Coverage Δ
ins-node/src/wifi_module/wifi_credentials.h 100% <100%> (ø)
ins-node/src/wifi_module/wifi_module.ino 100% <100%> (+25%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cbe7709...864bcea. Read the comment docs.