kopia lustrzana https://github.com/helium/longfi-arduino
switched examples to sub-band 2
rodzic
3c8e8acf66
commit
36e6132348
|
@ -172,7 +172,8 @@ void setup() {
|
|||
// (0.1% error, the most strict) can be used.
|
||||
LMIC_setClockError(1 * MAX_CLOCK_ERROR / 40);
|
||||
|
||||
LMIC_selectSubBand(6);
|
||||
// Sub-band 2 - Helium Network
|
||||
LMIC_selectSubBand(1); // zero indexed
|
||||
LMIC_setLinkCheckMode(0);
|
||||
LMIC_setDrTxpow(DR_SF7, 14);
|
||||
|
||||
|
|
|
@ -283,7 +283,8 @@ void setup() {
|
|||
|
||||
LMIC_setLinkCheckMode(0);
|
||||
LMIC_setDrTxpow(DR_SF8, 20);
|
||||
LMIC_selectSubBand(6);
|
||||
// Sub-band 2 - Helium Network
|
||||
LMIC_selectSubBand(1); // zero indexed
|
||||
|
||||
GPS.begin(9600);
|
||||
// Only interrested in GGA, no antenna status
|
||||
|
|
|
@ -21,7 +21,7 @@ uint8_t appSKey[] = { 0xd7, 0x2c, 0x78, 0x75, 0x8c, 0xdc, 0xca, 0xbf, 0x55, 0xee
|
|||
uint32_t devAddr = ( uint32_t )0x007e6ae1;
|
||||
|
||||
/*LoraWan channelsmask, default channels 0-7*/
|
||||
uint16_t userChannelsMask[6]={ 0x0000,0x0000,0x0000,0x00FF,0x0000,0x0000 };
|
||||
uint16_t userChannelsMask[6]={ 0xFF00,0x0000,0x0000,0x0000,0x0000,0x0000 };
|
||||
|
||||
/*LoraWan region, select in arduino IDE tools*/
|
||||
LoRaMacRegion_t loraWanRegion = ACTIVE_REGION;
|
||||
|
|
|
@ -275,7 +275,8 @@ void setup() {
|
|||
|
||||
LMIC_setLinkCheckMode(0);
|
||||
LMIC_setDrTxpow(DR_SF8, 20);
|
||||
LMIC_selectSubBand(6);
|
||||
// Sub-band 2 - Helium Network
|
||||
LMIC_selectSubBand(1); // zero indexed
|
||||
|
||||
// Start job (sending automatically starts OTAA too)
|
||||
do_send(&sendjob);
|
||||
|
|
|
@ -220,7 +220,8 @@ void setup() {
|
|||
|
||||
LMIC_setLinkCheckMode(0);
|
||||
LMIC_setDrTxpow(DR_SF7,14);
|
||||
LMIC_selectSubBand(6);
|
||||
// Sub-band 2 - Helium Network
|
||||
LMIC_selectSubBand(1); // zero indexed
|
||||
|
||||
// Start job (sending automatically starts OTAA too)
|
||||
do_send(&sendjob);
|
||||
|
|
|
@ -357,7 +357,8 @@ void setup() {
|
|||
|
||||
LMIC_setLinkCheckMode(0);
|
||||
LMIC_setDrTxpow(DR_SF8, 20);
|
||||
LMIC_selectSubBand(6);
|
||||
// Sub-band 2 - Helium Network
|
||||
LMIC_selectSubBand(1); // zero indexed
|
||||
|
||||
// Start job (sending automatically starts OTAA too)
|
||||
do_send(&sendjob);
|
||||
|
|
|
@ -275,7 +275,8 @@ void setup() {
|
|||
|
||||
LMIC_setLinkCheckMode(0);
|
||||
LMIC_setDrTxpow(DR_SF8, 20);
|
||||
LMIC_selectSubBand(6);
|
||||
// Sub-band 2 - Helium Network
|
||||
LMIC_selectSubBand(1); // zero indexed
|
||||
|
||||
// Start job (sending automatically starts OTAA too)
|
||||
do_send(&sendjob);
|
||||
|
|
|
@ -135,7 +135,8 @@ void setup() {
|
|||
// (0.1% error, the most strict) can be used.
|
||||
LMIC_setClockError(1 * MAX_CLOCK_ERROR / 40);
|
||||
|
||||
LMIC_selectSubBand(6);
|
||||
// Sub-band 2 - Helium Network
|
||||
LMIC_selectSubBand(1); // zero indexed
|
||||
LMIC_setLinkCheckMode(0);
|
||||
LMIC_setDrTxpow(DR_SF7, 14);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue