Need a module that will run instead of beagleblue so that the json can be sent and received from a local computer instead of via bluetooth. This module will get compiled from a special make file command. The mock bluetooth module will be implemented in mockHardware/mockBluetooth.c.
TODO
[x] Need Makefile command that will compile mockBluetooth.c instead of beagleBlue.c
[X] Need Macro constant to allow the compiler to know which file to compile
[X] Write skeleton functions to be implemented in mockBluetooth
[X] implement beagleblue_glass_send(char *buffer) returns 0 since we don't need this function.
[ ] implement beagleblue_android_send(char * buffer) sends buffer through socket
[ ] implement beagleblue_init(void (on_receive)(char buffer) which spawns threads for sending and receiving
[X] create thread for opening the server socket, and handling messages with a callback
[ ] create thread function for creating the client socket
[ ] implement beagleblue_exit() which closes all sockets opened in beagleblue_init() and notifies threads that they are done operating
[ ] implement beagleblue_join() which joins all threads created by beagleblue_init()
[ ] create program to test module
Note: beagleblue_join will be refactored out of the beagleblue interface which means that mockbluetooth will need to reflect those changes when they occur. Details can be found in issue #8 .
Need a module that will run instead of beagleblue so that the json can be sent and received from a local computer instead of via bluetooth. This module will get compiled from a special make file command. The mock bluetooth module will be implemented in mockHardware/mockBluetooth.c.
TODO
Note: beagleblue_join will be refactored out of the beagleblue interface which means that mockbluetooth will need to reflect those changes when they occur. Details can be found in issue #8 .