-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IN PROGRESS] Features - 2g data GET request #13
base: master
Are you sure you want to change the base?
Conversation
…ul GET request. Interestingly the only `AT+SAPBR` command we need is `AT+SAPBR=1,1` which means the chip is configured and ready to go. We should still support the other commands in case other carriers need them.
Is this abandoned? Would be great to have data support for gprs module..... |
It's not abandoned per say... but hasn't been updated in a while and I'm not sure of its current working status. I suggest you look at this project: https://github.com/heikki/tessel-tracker-demo. The author has done great work creating an abstract set of commands for chaining data. See https://github.com/heikki/tessel-tracker-demo/blob/master/index.js#L17-L26 and https://github.com/heikki/tessel-tracker-demo/blob/master/lib/commands.js |
Thank you for the answer! Actually I have tried |
Don't merge yet because there is a bug documented below
There is a bug that occurs when you end a script and then try running it again. You get the following stack trace.
To re-create do the following:
I think this is happening because we are doing something wrong with the init or termination commands. @johnnyman727, could a state or command remain lingering on the chip between power cycles? Otherwise this is likely do the network not being discovered in time.
requestGET(webAddress, callback)
This PR introduces data support to the GRPS module. It adds a method,
#requestGET(webAddress, callback)
, that will perform a simple GET request to a given web address. The callback will return with any errors if the GET request fails.For example:
new CommandChain()
This PR also introduces a helper method for generating command chains. Previously you needed to create three separate arrays, for example:
This was cumbersome in that it required updating three arrays to add or remove commands. Now you can keep the command, patience, and reply together in one object. For example:
You can then get arrays from the command chain using the following methods: