-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Display BLE device, service & char info * Bluetooth LE Connection control - Removed hard coding of specific devices - Added device lookup from local db to connect to devices - removed python script that is no longer used * Make BLE Support more dynamic - Char lookups - Auto connect - read / write / toggle based on more general endpoint * Fixed the async/await for read to enable toggle - removed unused python scripts - updated eslint for windows development linebreak - added airbnb linter - Fixed some but not all linting issues * Sidetracked to outlet control & rename * Finish rename * Commit WIP for laptop access * Finish outlet add / delete and update of table * rename * update dependencies * Refactor modules and Added temperature detail page * not sure but save point * updating dependencies * Dependency Update and stop pop * Package
- Loading branch information
Showing
68 changed files
with
165,389 additions
and
7,425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": ["airbnb"], | ||
"extends": ["airbnb", "prettier", "prettier/react"], | ||
"plugins": ["prettier"], | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"rules": { | ||
"no-console": "off", | ||
"comma-dangle": "off", | ||
"react/jsx-filename-extension": "off" | ||
"react/jsx-filename-extension": [ | ||
1, | ||
{ | ||
"extensions": [".js", ".jsx"] | ||
} | ||
], | ||
"linebreak-style": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"useTabs": false | ||
} |
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
controller/server/db/queries/get_all_bt_device_and_service_info.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
SELECT | ||
devices.device_uuid, | ||
devices.name, | ||
service_uuid, | ||
services.name as service_name, | ||
group_concat(chars.char_uuid) AS characteristics | ||
FROM bt_devices AS devices | ||
INNER JOIN bt_services AS services | ||
ON devices.device_uuid = services.device_uuid | ||
INNER JOIN bt_service_chars AS chars | ||
ON services.service_uuid = chars.service_uuid | ||
GROUP BY devices.device_uuid, services.service_uuid |
14 changes: 14 additions & 0 deletions
14
controller/server/db/queries/get_specific_bt_device_and_service_info.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
SELECT | ||
devices.device_uuid, | ||
devices.name, | ||
service_uuid, | ||
services.name as service_name, | ||
group_concat(chars.char_uuid) AS characteristics, | ||
group_concat(chars.name) AS char_name | ||
FROM bt_devices AS devices | ||
INNER JOIN bt_services AS services | ||
ON devices.device_uuid = services.device_uuid | ||
INNER JOIN bt_service_chars AS chars | ||
ON services.service_uuid = chars.service_uuid | ||
WHERE devices.device_uuid = 'EF:04:6F:54:36:A9' | ||
GROUP BY devices.device_uuid, services.service_uuid |
Oops, something went wrong.