This CLI (Command Line Interface) is based mbed-os. Both NNN50 and NQ620 are supported.

Fork of NNN40_CLI by Delta

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

/media/uploads/tsungta/mbed_serial_port_1.png

Please open the com port at 115200 8n1 as default

CLI_Source/ble_cli.h

Committer:
tsungta
Date:
2017-05-12
Revision:
25:1423b707b705
Parent:
17:03c8af30087a

File content as of revision 25:1423b707b705:

/*
 * ble-cli.h
 * Copyright 2014 by Delta Corporation. All rights reserved.
 */
//#ifdef __cplusplus  
//extern "C" {
//#endif 

//#ifdef __cplusplus
//}
//#endif

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "mbed.h"
#include "BLE.h"
#include "Gap.h"
#include "nrf_gpio.h"
#include "nrf_soc.h"
//#include "ble_hci.h"
#include "app_error.h"
#include "PinNames.h"
extern "C" {
#include "ble_advdata.h"
}
#include "ble/GattCharacteristic.h"
#include "ble/UUID.h"
#include "ble/DiscoveredCharacteristic.h"
#include "ble/DiscoveredService.h"
#include "command-interpreter.h" 
extern CyntecCommandEntry bleCommandSets[]; //for core_cli.cpp

void cynBLEInitCommand(void);//Tsungta