diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,15 +1,20 @@ #include <stdint.h> +#include <string.h> #include "nrfm.h" #include "uart.h" int main(void) { - uint8_t rxaddr[] = { 82, 178, 194 }; /* 194.178.82 */ + const char *s = "hello world!"; + + uint8_t rxaddr[] = { 194, 178, 82 }; + uint8_t txaddr[] = { 194, 178, 83 }; uart_init(); radio_init(rxaddr); radio_print_config(); + radio_sendto(txaddr, s, strlen(s)); return 0; } |
