Commit Graph

112 Commits

Author SHA1 Message Date
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
mmcwilliams a71deca9e3 INTBAL?????? 2017-11-23 09:52:49 -05:00
mmcwilliams 6ce6af3abe Log whether or not frame is part of a sequence. 2017-11-23 09:46:18 -05:00
mmcwilliams 6ee022a2a4 Had not declared query const properly. Fixed. 2017-11-23 09:35:47 -05:00
mmcwilliams 64389ab954 Add feature to list all frames and another to find others with a WHERE statement. 2017-11-23 09:34:24 -05:00
mmcwilliams cd3f79a3a0 Use an integer to track direction, boolean is not an sqlite3 datatype. 2017-11-23 09:29:44 -05:00
mmcwilliams e558b0387d State.frame.current, not state.current. 2017-11-23 09:23:05 -05:00
mmcwilliams 320d3fe02f Spell exposure right, ya dingus. 2017-11-23 09:21:56 -05:00
mmcwilliams 73a65d9021 Add sqlite3 and table logging functionality. Track all frames all the time. 2017-11-23 09:19:43 -05:00
mmcwilliams a79d13d382 Add sequence module and db module placeholder 2017-11-22 20:26:10 -05:00
mmcw-dev c827f64510 Update intval module documentation 2017-11-22 09:58:57 -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
mmcw-dev 8eccf05a68 storage.getItem, not getItem, you scrub. 2017-10-23 20:31:24 -04:00
mmcw-dev 7ac642ee30 Accidentally commented out gpio from intval module 2017-10-23 13:32:45 -04:00
mmcw-dev b307567a51 Persist device state with node-persist. This allows multiple controllers to share state, and for device to maintain settings between shutdowns. 2017-10-23 12:58:37 -04:00
mmcw-dev c508c6e693 Caught nagging bug, will calculate timing if default time is set. 2017-10-23 00:30:08 -04:00
mmcw-dev a9e13ac2a6 Restore device state in app, set counter in webapp, 2017-10-22 19:59:38 -04:00
mmcw-dev d7ca2ebe46 All features added to /frame endpoint, can set direction independent of the state and can set the exposure as well. 2017-10-21 20:12:39 -04:00
mmcw-dev da3908c2e5 Add logic to prevent frames shorter than 250ms. Might work for now. Seemingly only happening with web requests? 2017-10-21 19:31:52 -04:00
mmcw-dev c2f372c7fe Actually pass the required information into the callback function 2017-10-21 12:23:37 -04:00
mmcw-dev 0b245a00c4 Log after frame is complete 2017-10-21 12:21:15 -04:00
mmcw-dev 9302cf1b21 Force example frame before evaluating query and body of post for parameters 2017-10-21 12:10:16 -04:00
mmcw-dev 0848d5bfc0 Add logging to webapp and callback to frame function in intval 2017-10-21 12:08:12 -04:00
mmcw-dev 41360405c3 Lol. Was a little overzealous with a replace all. _state.release.time should never have been changed to exposure. 2017-10-21 11:54:45 -04:00
mmcw-dev e2ee307824 Add logging back because release no longer works 2017-10-21 11:52:41 -04:00
mmcw-dev 186b8324d1 Manage state from the webapp. Build all features there before mobile. 2017-10-21 11:46:06 -04:00
mmcw-dev 58f8d09775 Try catch the connection 2017-10-20 21:45:17 -04:00
mmcw-dev df106e6e90 Remove some logging, clean up others 2017-10-20 21:10:01 -04:00
mmcw-dev 638530d2b2 Try a 400ms backwards open variable 2017-10-20 21:07:43 -04:00
mmcw-dev b22712053c Remove excessive logging 2017-10-20 21:05:00 -04:00
mmcw-dev f4d7d3c593 Wow. Just wow. 2017-10-20 21:03:47 -04:00
mmcw-dev 5079adf04f Paused logging 2017-10-20 21:01:58 -04:00
mmcw-dev cc6311a01a Add logging to backwards from forwards logic 2017-10-20 20:58:55 -04:00
mmcw-dev e09f1adbcd Ok backwards frames are apparently doing fine. This commit uses a better organized object structure for release variables. 2017-10-20 20:54:35 -04:00
mmcw-dev 190732de13 Whoops, referenced "dir" not "val" 2017-10-20 20:45:21 -04:00