give it a try.
Hi Shramik,
I tried the Decode.ino and it immediately bouced.
Do you think that I should only attempt the TTN example and modify it?
Est
Spyros
in the examples there is âBasic linbrary TTNâ code. did you try it?
I am trying this now,
But I am getting of error on LPP
sharing the error will be quite helpful to solve the issue.
what is the error?
C:\Users\Spiros\Documents\Arduino\libraries\CayenneLPP-master\src\CayenneLPP.cpp:15:1: note: implicit this pointer type mismatch
CayenneLPP::~CayenneLPP(void) {
^
C:\Users\Spiros\Documents\Arduino\libraries\CayenneLPP-master\src\CayenneLPP.h:100:7: note: type âstruct CayenneLPPâ itself violates the C++ One Definition Rule
class CayenneLPP {
^
C:\Users\Spiros\Documents\Arduino\libraries\WiMOD\src\Cayenne\CayenneLPP.h:47:7: note: the incompatible type is defined here
class CayenneLPP {
^
C:\Users\Spiros\Documents\Arduino\libraries\CayenneLPP-master\src\CayenneLPP.cpp:15:1: note: '__base_dtor â was previously declared here
CayenneLPP::~CayenneLPP(void) {
^
C:\Users\Spiros\Documents\Arduino\libraries\CayenneLPP-master\src\CayenneLPP.cpp:15:1: note: code may be misoptimized unless -fno-strict-aliasing is used
sorry, i am not aware of this issue as it is not entire error and cannot help you further.
Dear Shramik,
Thank you again for your support. You think it is a conflict between the LPP and LORA module libraries?
Best
Spyros
i dont know, without any error how can i tell what is the issue here.
HI Shramik,
Hope you are well. I rearranged the code a bit and now the error I get is:
CayenneLPP::~CayenneLPP(void) {
^
C:\Users\Spiros\Documents\Arduino\libraries\CayenneLPP-master\src\CayenneLPP.cpp:15:1: note: code may be misoptimized unless -fno-strict-aliasing is used
collect2.exe: error: ld returned 1 exit status
Any ideas please? The code is attached in a text file
Best
Spyros
Cayenne LPP error.txt (10.8 KB)
can you share the code.
// make sure to use only the WiMODLoRaWAN.h
// the WiMODLR_BASE.h must not be used for LoRaWAN firmware.
#include <CayenneLPP.h>
#include <WiMODLoRaWAN.h>
#if defined(ARDUINO_ARCH_AVR)
#include <avr/pgmspace.h>
#endif
// Set your AppEUI and AppKey
const char *appEui = â0xAC, 0xDE, 0x48, 0x23, 0x45, 0x67, 0xAB, 0xCDâ;
const char *appKey = â0xBE, 0xC4, 0x99, 0xC6, 0x9E, 0x9C, 0x93, 0x9E, 0x41, 0x3B, 0x066, 0x39, 0x61, 0x63, 0x6C, 0x61)â;
#define loraSerial Serial1
#define debugSerial Serial
// Replace REPLACE_ME with TTN_FP_EU868 or TTN_FP_US915
//#define freqPlan REPLACE_ME
//TheThingsNetwork ttn(loraSerial, debugSerial, freqPlan);
//CayenneLPP lpp(51);
//-----------------------------------------------------------------------------
// platform defines
//-----------------------------------------------------------------------------
/*
-
Note: This sketch is for Arduino devices with two separate serial interfaces
-
(e.g. DUE). One interface is connected to a PC and one is used for WiMOD.
Hello Shramik,
I resent the code in text format. Hope you received it.
Best
Spyros
it will be better if you stop sending message via email.
Do you prefer through the website?
Best
Spyros
yes.
Thank you very much for your immediate support, it worked with success.
Math.h is needed for what reason if I may ask?
i simple google search result C Library math.h Functions - GeeksforGeeks
Thank you again for your support.
On the deep sleep timer in your opinion, what is the best way to follow to get support?
Thank you
Spyros