Help improve this code

robtillaart:
you need to define action() before it is used. (so move it up in the listing or use a separate .cpp file for it)

thank you i managed to do it but again i can't get it to work it only works on pc when i connect with cable i wrote another program just to test the modul and it is transmiting fine dont know how to write a code to check if it's receiving data normaly