-
Notifications
You must be signed in to change notification settings - Fork 492
Arduino + ESP8266 - Problems using Modem from Contrib #362
Comments
We would appreciate if you can help us fix and make modification to
contrib/modem as recent changes were not tested on real hardware. Feel free
to fork and suggest pull requests.
…On Thu, Jun 28, 2018 at 11:16 AM rafaelb4rreto ***@***.***> wrote:
Hello!
As discussed in post #297
<#297> , the files
from contrib/src/modem seems to have wrong #includes.
So I put all the files from /contrib/src/modem
<https://github.com/firebase/firebase-arduino/tree/master/contrib/src/modem>
and from /contrib/src/modem/db
<https://github.com/firebase/firebase-arduino/tree/master/contrib/src/modem/db>
and the contrib/src/SerialTransceiver.h
<https://github.com/firebase/firebase-arduino/blob/master/contrib/src/SerialTransceiver.h>
renamed to "SerialTransceiver*2*.h" in the same dir of the sketch and
changed the #includes untill the code from the sketch get sucessfully
compiled.
The sketch is a copy of the example in
/contrib/examples/FirebaseSerialTerminal_ESP8266/FirebaseSerialTerminal_ESP8266.ino
<https://github.com/firebase/firebase-arduino/blob/master/contrib/examples/FirebaseSerialTerminal_ESP8266/FirebaseSerialTerminal_ESP8266.ino>
(for test the protocol from the terminal). The only modification in the
.ino was "#include <SerialTranceiver.h>" to "#include "SerialTranceiver*2*
.h""
Opening the terminal, the ESP8266 send "Connected: 192.168.bla.bla". Ok!
Then I put the command BEGIN_DB <my_host> <my_secret> and the board send
"+OK". Cool!
But when I put "SET blabla" or "NETWORK" or "SET: blabla" it returns "-
Invalid command 'SET'.", for exemple.
AND the most strange is that the board understand the command "GET", but
it always returns something like: "GET /blabla.json: connection refused".
Has anyone got this working? Does someone know what is happening? Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#362>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AD3-GGtRk4gUdX7ukwshtGjzPQ4E5cMyks5uBPNNgaJpZM4U7lUh>
.
|
Ok! I will suggest a pull when I fix it. I fixed this bug: But when I put "SET blabla" or "NETWORK" or "SET: blabla" it returns "-FAIL Invalid command 'SET'.", for exemple. Basically the binary_search() in firebase-arduino/contrib/src/modem/SerialTransceiver.cpp, line 28, was not working. But now all the others commands return "-FAIL GET /blabla.json: connection refused", for exemple. I dont know what to do anymore. |
Using the FirebaseDemo_ESP8266 example I had the same output of the #357 and it never get connected: " |
Hello!
As discussed in post #297 , the files from contrib/src/modem seems to have wrong #includes.
So I put all the files from /contrib/src/modem and from /contrib/src/modem/db and the contrib/src/SerialTransceiver.h renamed to "SerialTransceiver2.h" in the same dir of the sketch and changed the #includes untill the code from the sketch get sucessfully compiled.
The sketch is a copy of the example in /contrib/examples/FirebaseSerialTerminal_ESP8266/FirebaseSerialTerminal_ESP8266.ino (for test the protocol from the terminal). The only modification in the .ino was "#include <SerialTranceiver.h>" to "#include "SerialTranceiver2.h""
Opening the terminal, the ESP8266 send "Connected: 192.168.bla.bla". Ok!
Then I put the command "BEGIN_DB <my_host> <my_secret>" and the board send "+OK". Cool!
But when I put "SET blabla" or "NETWORK" or "SET: blabla" it returns "-FAIL Invalid command 'SET'.
", for exemple.
AND the most strange is that the board understand the command "GET", but it always returns something like: "GET /blabla.json: connection refused".
Has anyone got this working? Does someone know what is happening? Thanks!
The text was updated successfully, but these errors were encountered: