Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Android
BLENano_Peripheral/BLENano_RGB
Duo_BLECentral/BLE_Central_Multi_Peripherals
iOS/RedBear8Nanos
README.md

README.md

Duo-8Nanos

This demo allows a TCP client to connect to the Duo and conntrolling up to 8 BLE peripherals.

Prerequisites

  • 1 or up to 8 BLE Nano boards

  • Duo board

  • iOS or Android phone

    (For iOS, you need to compile yourself with your iOS developer license)

Setup

  • Follow this, use board package v0.2.8, to load the firmware (v0.2.4-rc3) using RBLink or DFU and the Duo_BLECentral sketch to the Duo.
  • Follow this to load the BLENano_BLEPeripheral sketch to the BLE Nano.
  • For Android: compile or load the APK file inside Android to your Android phone.
  • For iOS: compile the project inside iOS to your iPhone, iPod touch or iPad.

Note: Firmware v0.2.3 will not work, thus, it will not work for Particle Web IDE. Please wait for the release of v0.2.4.

How it works

The Duo starts as a TCP server and waiting for a connection from TCP client. In this example, we will use iOS and Android for the TCP client. After the connection is made, the Duo will scan for the nearby BLE Nano.

Inside the Duo_BLECentral/BLE_Central_Multi_Peripherals/ble_nano.h, change the number of the BLE Nano you want to connect.

#define NANO_NUM 2

The Duo also runs mDNS service, so that you do not need to enter the IP address or port number assigned.

You can’t perform that action at this time.