SFU-Embedded-Cosplay / Halo-Suit-BeagleBone

2 stars 0 forks source link

Refactor Beagleblue #14

Open HamiltonChris opened 9 years ago

HamiltonChris commented 9 years ago

I'd like to refactor some of the modules in this project and because of the mockBluetooth (#5) I've decided that the beagleblue module is a good place to start. Since there might be additional bluetooth connections in the future we need a data structure to hold all the information pertaining to a connection (android, glass, arduinio, etc). This will probably take the form of a struct array. With this we can eliminate a few of the functions that have nearly identical operations (beagleblue_android_send, beagleblue_glass_send, etc). The function beagleblue_set_mode the function socket() can be replaced with hci_open_dev as stated in #9. Also some of the names can be fixed so that they reflect the coding style outlined on the wiki Note: do not make changes until we have a testable system.

Related issues: #5 #8 #9 #22 #30

Tyler-R commented 8 years ago

creating a data structure to hold the bluetooth connection, refactroring beagleblue to use this new data structure, and making beagleblue_set_mode() public were all fixed in pull request #40