Development v12

Warning - Product Update

All the resources present on this section belong to Waspmote v12, Waspmote Plug & Sense! v12 and Meshlium v3.8.

If you have a Waspmote v15, Waspmote Plug & Sense! v15 or Meshlium v4.0 please go to the new Development Section.

Check what is your version and what are the differences between the old and the new one in this document.

» BT Pro 09: Sleep mode

This example shows how to use sleep mode of Bluetooth module

Required Materials

1 x Waspmote
1 x Battery
1 x Coin battery
1 x Bluetooth module Pro
1 x Bluetooth module antenna
1 x Expansion board (if socket 1 is used)
1 x SD card


-Do not confuse Bluetooth sleep mode and Waspmote sleep modes.
-Bluetooth module wakes up through UART. Take into account that if you send bytes through same socket where bluetooth module is connected, It will be woken up.
- Socket 1 will be used to connect Bluetooth module (using expansion board)
- Socket 0 can also be used, plugging module directly.
- It is recommended to set RTC time to your actual time.
- SD card must be inserted to allow saving discovered devices.
- Never unplug module while Waspmote is turned ON.
- Bluetooth module antenna should be connected.
- The battery must be connected in ANY example.
- This example can be executed in Waspmote v12 and Waspmote v15


 *  -------------------------- BT PRO_09 - Sleep mode ------------------- 
 *  Explanation: Put bluetooth module into sleep mode and wake it up again.
 *  Do not confuse with Waspmote sleep modes.
 *  Copyright (C) 2016 Libelium Comunicaciones Distribuidas S.L. 
 *  This program is free software: you can redistribute it and/or modify 
 *  it under the terms of the GNU General Public License as published by 
 *  the Free Software Foundation, either version 3 of the License, or 
 *  (at your option) any later version. 
 *  This program is distributed in the hope that it will be useful, 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of 
 *  GNU General Public License for more details. 
 *  You should have received a copy of the GNU General Public License 
 *  along with this program.  If not, see <>. 
 *  Version:		1.1
 *  Design:			David Gascón
 *  Implementation:	Javier Siscart

#include "WaspBT_Pro.h"

void setup()

  USB.println(F("BT_PRO_09 Example"));

  // Turn On Bluetooth module


void loop()

  // 1. Put Bluetooth module into Sleep mode
  USB.println(F("Bluetooth module sleeping."));   

  // 2. Wake up Bluetooth module  
  USB.println(F("Bluetooth module alive."));   

  // Note: Bluetooth module wakes up through UART.
  // Take into account that if you send bytes through same SOCKET 
  // where Bluetooth module is connected, It will be woken up.



BT_PRO_09 Example
Bluetooth module sleeping.
Bluetooth module alive.

Quick Publish: