Application that measures the temperature and humidity every 60s and sends it to a LoRa Gateway.

Dependencies:   DHT LMiC SX1276Lib mbed

Committer:
Maarten_BE
Date:
Thu Apr 07 13:56:37 2016 +0000
Revision:
0:068b9b32e9e8
Initial commit of temperature and humidity application that sends the measured values every 60s to a LoRa Gateway

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Maarten_BE 0:068b9b32e9e8 1 /*******************************************************************************
Maarten_BE 0:068b9b32e9e8 2 * Copyright (c) 2014-2015 IBM Corporation.
Maarten_BE 0:068b9b32e9e8 3 * All rights reserved. This program and the accompanying materials
Maarten_BE 0:068b9b32e9e8 4 * are made available under the terms of the Eclipse Public License v1.0
Maarten_BE 0:068b9b32e9e8 5 * which accompanies this distribution, and is available at
Maarten_BE 0:068b9b32e9e8 6 * http://www.eclipse.org/legal/epl-v10.html
Maarten_BE 0:068b9b32e9e8 7 *
Maarten_BE 0:068b9b32e9e8 8 * Contributors:
Maarten_BE 0:068b9b32e9e8 9 * IBM Zurich Research Lab - initial API, implementation and documentation
Maarten_BE 0:068b9b32e9e8 10 * Semtech Apps Team - Adapted for MBED
Maarten_BE 0:068b9b32e9e8 11 *******************************************************************************/
Maarten_BE 0:068b9b32e9e8 12 #ifndef _debug_hpp_
Maarten_BE 0:068b9b32e9e8 13 #define _debug_hpp_
Maarten_BE 0:068b9b32e9e8 14
Maarten_BE 0:068b9b32e9e8 15 // intialize debug library
Maarten_BE 0:068b9b32e9e8 16 void debug_init (void);
Maarten_BE 0:068b9b32e9e8 17
Maarten_BE 0:068b9b32e9e8 18 // set LED state
Maarten_BE 0:068b9b32e9e8 19 void debug_led (u1_t val);
Maarten_BE 0:068b9b32e9e8 20
Maarten_BE 0:068b9b32e9e8 21 // write character to USART
Maarten_BE 0:068b9b32e9e8 22 void debug_char (u1_t c);
Maarten_BE 0:068b9b32e9e8 23
Maarten_BE 0:068b9b32e9e8 24 // write byte as two hex digits to USART
Maarten_BE 0:068b9b32e9e8 25 void debug_hex (u1_t b);
Maarten_BE 0:068b9b32e9e8 26
Maarten_BE 0:068b9b32e9e8 27 // write buffer as hex dump to USART
Maarten_BE 0:068b9b32e9e8 28 void debug_buf (const u1_t* buf, u2_t len);
Maarten_BE 0:068b9b32e9e8 29
Maarten_BE 0:068b9b32e9e8 30 // write 32-bit integer as eight hex digits to USART
Maarten_BE 0:068b9b32e9e8 31 void debug_uint (u4_t v);
Maarten_BE 0:068b9b32e9e8 32
Maarten_BE 0:068b9b32e9e8 33 // write nul-terminated string to USART
Maarten_BE 0:068b9b32e9e8 34 void debug_str (const u1_t* str);
Maarten_BE 0:068b9b32e9e8 35
Maarten_BE 0:068b9b32e9e8 36 // write LMiC event name to USART
Maarten_BE 0:068b9b32e9e8 37 void debug_event (int ev);
Maarten_BE 0:068b9b32e9e8 38
Maarten_BE 0:068b9b32e9e8 39 // write label and 32-bit value as hex to USART
Maarten_BE 0:068b9b32e9e8 40 void debug_val (const u1_t* label, u4_t val);
Maarten_BE 0:068b9b32e9e8 41
Maarten_BE 0:068b9b32e9e8 42 #endif // _debug_hpp_