Sara Ubee library

Hi,
I’m using Arduino uno with ubee sara R410, I have a problem with the library RXX which I found on the site. It is not compatible with arduino.
Can you help me to solve this problem? Because I must send in MQTT

Hi Antonella,

I think this topic should help you quite a bit.

Regards,
Thom

Yes,
I saw it! But I have done yet. Also the pass through, my problem is the Library which is INCOMPATIBLE with Arduino

Hi Antonella,

Please note the errors you’re getting.

Regards,
Thom

Arduino:1.8.11 (Windows 10), Scheda:“Arduino Uno”

ATTENZIONE: la libreria Sodaq_R4X-master dichiara di funzionare sulle architetture samd e potrebbe non essere compatibile con la tua scheda che utilizza l’architettura avr
C:\Users\anton\Documents\Arduino\libraries\Sodaq_R4X-master\src\Sodaq_R4X.cpp: In member function ‘bool Sodaq_R4X::getIMSI(char*, size_t)’:

C:\Users\anton\Documents\Arduino\libraries\Sodaq_R4X-master\src\Sodaq_R4X.cpp:356:113: error: ‘atoll’ was not declared in this scope

 return (execCommand("AT+CIMI", DEFAULT_READ_MS, buffer, size) == GSMResponseOK) && (strlen(buffer) > 0) && (atoll(buffer) > 0);

                                                                                                             ^~~~~

C:\Users\anton\Documents\Arduino\libraries\Sodaq_R4X-master\src\Sodaq_R4X.cpp:356:113: note: suggested alternative: ‘atol’

 return (execCommand("AT+CIMI", DEFAULT_READ_MS, buffer, size) == GSMResponseOK) && (strlen(buffer) > 0) && (atoll(buffer) > 0);

                                                                                                             ^~~~~

                                                                                                             atol

C:\Users\anton\Documents\Arduino\libraries\Sodaq_R4X-master\src\Sodaq_R4X.cpp: In member function ‘bool Sodaq_R4X::getIMEI(char*, size_t)’:

C:\Users\anton\Documents\Arduino\libraries\Sodaq_R4X-master\src\Sodaq_R4X.cpp:514:113: error: ‘atoll’ was not declared in this scope

 return (execCommand("AT+CGSN", DEFAULT_READ_MS, buffer, size) == GSMResponseOK) && (strlen(buffer) > 0) && (atoll(buffer) > 0);

                                                                                                             ^~~~~

C:\Users\anton\Documents\Arduino\libraries\Sodaq_R4X-master\src\Sodaq_R4X.cpp:514:113: note: suggested alternative: ‘atol’

 return (execCommand("AT+CGSN", DEFAULT_READ_MS, buffer, size) == GSMResponseOK) && (strlen(buffer) > 0) && (atoll(buffer) > 0);

                                                                                                             ^~~~~

                                                                                                             atol

exit status 1
Errore durante la compilazione per la scheda Arduino Uno.

Add this line:

#define atoll atol

Seems that the arduino uno doesn’t have a built in converter from string to unsigned long long. Luckily we don’t really need the number, only if we got a valid number at all.

Regards,
Thom

Thank you so much,
I have another question. I want to use Mqtt and I saw that in library there is an example, it is working well?