Commit Graph

32 Commits

Author SHA1 Message Date
mmcwilliams 1d2cc757ec More explicitly watch for undefined env variables. 2020-07-25 11:56:43 -04:00
mmcwilliams 7d779bc5c9 Compile ble module with typescript. Add globals file to prevent errors. 2020-05-19 17:31:55 -04:00
mmcwilliams 07229c7925 Refactored wifi and ble into typescript and converted logic to async/await for most methods. Compiles without errors ATM. 2019-11-26 22:10:59 -05:00
mmcwilliams de481ee185 Add bleno types. 2019-11-26 21:16:13 -05:00
mmcwilliams 84ee49a71c Compile ble and wifi as is. 2019-11-26 10:44:08 -05:00
mmcwilliams 26655ea0a7 re-write progress, changing platforms 2019-10-16 10:58:46 -04:00
mmcwilliams adfadc8008 Bug in wifiRes was writing to constant variable on error state 2019-03-27 18:36:39 -04:00
mmcw-dev df1c39604a Referenced the filtered array, not the first element, like a jackass. 2018-01-04 16:14:12 -05:00
mmcw-dev 980f1f56c5 Log the local ip so info is readable server-side as well. 2018-01-04 16:12:32 -05:00
mmcw-dev 3af05e442d Track the local ip address of the wlan0 interface and report information to the BLE service. 2018-01-04 16:10:38 -05:00
mmcwilliams 15ded20735 Parse wpa_supplicant file 2017-12-31 23:45:40 -05:00
mmcwilliams 2c3b4408fb Log excessively and use info to build parseConfig function 2017-12-31 23:16:01 -05:00
mmcwilliams 0064f75e3b List wifi APs and log when process is starting 2017-12-31 21:41:18 -05:00
mmcwilliams 5b3d1ff2b3 Update write characteristic to use hash function, making createPSK public function 2017-12-31 21:32:09 -05:00
mmcwilliams 43f62e4885 wifi read characteristic in bleno and get network SSID on startup 2017-12-31 21:23:31 -05:00
mmcwilliams 22d497b464 BLE features are working, minus the wifi feature. Good work today. 2017-12-13 18:40:14 -05:00
mmcwilliams 57efee6d7f os module needs to be required first 2017-12-13 18:35:59 -05:00
mmcwilliams 35feed7775 Require bleno AFTER unique name is applied (this was messing up) 2017-12-13 18:34:00 -05:00
mmcwilliams 6cabd0e926 Use a better device id 2017-12-13 18:31:59 -05:00
mmcwilliams 567b1bb55d Advertisement length error, try with char_id, not both ids 2017-12-13 18:25:02 -05:00
mmcwilliams 47c75f5ba9 Name and advertise properly 2017-12-13 18:22:32 -05:00
mmcwilliams d8e6a2206e OK! Cannot pass data back during a write event, BUUUT can respond asynchronously, and state can be read immediately after? Or should I cache a response? More on this later. 2017-12-12 13:37:36 -05:00
mmcwilliams 601d0cf581 Send a buffer of a string, not the entire string. 2017-12-12 13:24:26 -05:00
mmcwilliams 4aadc5a9df Use callback model for bluetooth write events. 2017-12-12 13:09:13 -05:00
mmcwilliams f74465cbbc utf8 not uft8. I am a freaking dumbass. 2017-12-12 11:57:04 -05:00
mmcwilliams 05a69e5512 Do not log getState data, but do log utf8 string and parsed object onWrite 2017-12-12 11:54:43 -05:00
mmcwilliams 5f61865366 No need to log state 2017-12-12 11:38:48 -05:00
mmcwilliams 76fcc95327 See what state is before sending 2017-12-11 14:47:05 -05:00
mmcwilliams 5f97c7a4de Pass back actual state object. 2017-12-11 14:44:27 -05:00
mmcwilliams 1fef6d6925 Pass an intval.state object into ble lib 2017-12-11 14:38:46 -05:00
mmcw-dev 7109e6c52e Add general purpose characteristic for intval3 2017-11-22 09:58:45 -05:00
mmcw-dev 0272ca21f6 Add bleno to main process by adding a module that gets incorporated into the same process running express. 2017-11-22 09:30:08 -05:00