Hey there,
What library should I use to use the 3GBee?
Is there any example/tutorial available?
Hey there,
What library should I use to use the 3GBee?
Is there any example/tutorial available?
We’re currently in the process to develop a library for it. It’s not finished but we’re getting close.
So, I’ll have to ask for some patience.
That’s not a problem, let me know if I can help somehow (even testing).
By the way, was I also supposed to receive a cable like in this photo?
The first release of the Sodaq_3Gbee library is available. I’ve tagged it v0.9.0.
It is still work in progress.
There is one example with the library. I hope it is enough to get you started.
Have a look at:
http://github.com/SodaqMoja/Sodaq_3Gbee.git
And there is a zip at:
http://downloads.sodaq.net:Sodaq_3Gbee.zip
Hi there. I’ve tried the example in your library, but I’m getting this error:
/Users/mattd/Documents/Arduino/test_3Gbee/test_3Gbee.ino: In function 'void setup()': test_3Gbee:123: error: invalid conversion from 'const char*' to 'const uint8_t* {aka const unsigned char*}' [-fpermissive] sodaq_3gbee.socketSend(socket, "123456789", 9); ^ In file included from /Users/mattd/Documents/Arduino/test_3Gbee/test_3Gbee.ino:1:0: /Users/mattd/Documents/Arduino/libraries/Sodaq_3Gbee/src/Sodaq_3Gbee.h:105:10: error: initializing argument 2 of 'virtual bool Sodaq_3Gbee::socketSend(uint8_t, const uint8_t*, size_t)' [-fpermissive] bool socketSend(uint8_t socket, const uint8_t* buffer, size_t size); ^ test_3Gbee:126: error: invalid conversion from 'char*' to 'uint8_t* {aka unsigned char*}' [-fpermissive] size_t bytesRead = sodaq_3gbee.socketReceive(socket, receiveBuffer, sizeof(receiveBuffer)); ^ In file included from /Users/mattd/Documents/Arduino/test_3Gbee/test_3Gbee.ino:1:0: /Users/mattd/Documents/Arduino/libraries/Sodaq_3Gbee/src/Sodaq_3Gbee.h:110:12: error: initializing argument 2 of 'virtual size_t Sodaq_3Gbee::socketReceive(uint8_t, uint8_t*, size_t)' [-fpermissive] size_t socketReceive(uint8_t socket, uint8_t* buffer, size_t size); ^ exit status 1 invalid conversion from 'const char*' to 'const uint8_t* {aka const unsigned char*}' [-fpermissive]
Sorry for that. I updated / changed some of the interface functions.
I’ll update the example shortly.
There is an update of the library, v1.2.0
It has lots of changes which I have been using for a while now. In other words, it should be stable.
Depending how long it takes for Arduino to update it may become available within 24 hours.
Or else you can go to our SodaqMoja github.
Ok, I’ve had some progress. Here’s where I’m at:
**Bootup**
[init] started.
[initBuffer]
>> AT
[rdResp]: timed out
>> AT
[rdResp]: timed out
>> AT
[rdResp]: timed out
>> AT
[rdResp]: timed out
>> AT
[rdResp]: timed out
>> AT
[rdResp]: timed out
>> AT
[rdResp]: timed out
>> AT
[rdResp]: timed out
>> AT
[rdResp]: timed out
>> AT
[rdResp]: timed out
Error: No Reply from Modem
Modem failed to connect to the apn!
I’m glad you call this progress
But seriously, it looks like the initialization is not correct. Can you share some code snippets?