Added centralized sensor network configuration file to control channel, power level and data rate.

This commit is contained in:
Bruce Lacey
2014-03-09 15:30:33 -07:00
parent f1fe7062c6
commit 2195a8c952
4 changed files with 21 additions and 5 deletions
+2 -3
View File
@@ -12,6 +12,7 @@
#ifndef Sensor_h
#define Sensor_h
#include "Config.h"
#include <nRF24L01.h>
#include <RF24.h>
#include <RF24_config.h>
@@ -22,8 +23,6 @@
#include <avr/pgmspace.h>
#include <stdarg.h>
#define DEBUG
#ifdef DEBUG
#define debug(x,...) debugPrint(x, ##__VA_ARGS__)
#else
@@ -137,7 +136,7 @@ class Sensor : public RF24
* @param channel Radio channel. Default is channel 76
* @param dataRate Radio transmission speed. Default RF24_2MBPS
*/
void begin(uint8_t radioId=AUTO, rf24_pa_dbm_e paLevel=RF24_PA_MAX, uint8_t channel=76, rf24_datarate_e dataRate=RF24_2MBPS);
void begin(uint8_t radioId=AUTO, rf24_pa_dbm_e paLevel=RF24_PA_LEVEL, uint8_t channel=RF24_CHANNEL, rf24_datarate_e dataRate=RF24_DATARATE);
uint8_t getRadioId();