/** * Helper code for debugging the Wimod DLL */ private void cyclic_lora_rx() { Debug.WriteLine("Thread Cyclic Lora Rx started."); while (LORA_RX_ACTIVE) { WimodHCIWrapper.wrap_WiMOD_HCI_Process(); Thread.Sleep(1000); } Debug.WriteLine("THREAD Cyclic Lora Rx stopped."); }
public Form1() { InitializeComponent(); initCbbPorts(); initModeSelection(); mountEventHandlers(); /* initialise modbus client here.. */ mountModbusMaster(); /* Initialise the log file */ DataLogging.setCurrentLogFile(); Debug.WriteLine("Created a new log file at: " + DataLogging.CURRENT_LOG_FILE); //printYourName("David"); Debug.WriteLine(MathLibraryWrapper.add(1, 2).ToString()); Debug.WriteLine(MathLibraryWrapper.subtract(100, 1).ToString()); Debug.WriteLine(WimodHCIWrapper.printFromHCIDLL()); Debug.WriteLine(WimodHCIWrapper.wrap_WiMOD_HCI_Init()); Debug.WriteLine(WimodHCIWrapper.getWiMODPayloadSize()); /*fibonacci_init(1,1); * * do * { * Debug.WriteLine(fibonacci_index() + ": " + fibonacci_current()); * fibonacci_next(); * } while (fibonacci_index() <= 20);*/ }