This CLI (Command Line Interface) is based mbed-os. Both NNN50 and NQ620 are supported.
Fork of NNN40_CLI by
BLE CLI Document can be downloaded here .
Note that when evaluate using Windows PC as the host, the Serial driver need to be installed in advance. The instruction is explained in the link below
https://developer.mbed.org/handbook/Windows-serial-configuration
Once installed, a device called 'mbed Serial Port (COM#)' should be recognized in Device Manager, as shown below
Please open the com port at 115200 8n1 as default
Diff: mbed-events/EventLoop.cpp
- Revision:
- 25:1423b707b705
- Parent:
- 24:838a0b25934b
--- a/mbed-events/EventLoop.cpp Fri Nov 11 09:02:51 2016 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-#ifdef MBED_CONF_RTOS_PRESENT
-#include "EventLoop.h"
-
-#include "events.h"
-#include "rtos.h"
-#include "mbed.h"
-
-
-EventLoop::EventLoop(
- osPriority priority,
- unsigned event_size,
- unsigned char *event_pointer,
- uint32_t stack_size,
- unsigned char *stack_pointer)
- : EventQueue(event_size, event_pointer)
- , _thread(priority, stack_size, stack_pointer)
- , _running(false) {
-}
-
-EventLoop::~EventLoop() {
- stop();
-}
-
-static void run(EventLoop *loop) {
- loop->dispatch();
-}
-
-osStatus EventLoop::start() {
- if (_running) {
- return osOK;
- }
-
- osStatus status = _thread.start(this, run);
- _running = (status == osOK);
- return status;
-}
-
-osStatus EventLoop::stop() {
- if (!_running) {
- return osOK;
- }
-
- break_();
- osStatus status = _thread.join();
- _running = false;
- return status;
-}
-
-#endif
-
