libJelling-calc/SRC/BTKOM.cpp

31 lines
462 B
C++

#include "BTKOM.h"
Bluetooth bluetooth;
void listen(){
//bluetooth.receptMessage();
}
int main(){
unsigned int key;
int timer;
int err = 156;
char buffer[255] = {"lolilol"};
Message toSend;
err = bluetooth.listen(2000, 0, listen, 1);
toSend.setType("REQ");
toSend.setMessage(buffer);
bluetooth.sendMessage(&toSend);
ML_display_vram();
while(1){
GetKey(&key);
}
return 1;
}