Last change
on this file since 136 was 136, checked in by ertl-honda, 9 years ago |
ライブラリとOS及びベーシックなサンプルの追加.
|
File size:
507 bytes
|
Rev | Line | |
---|
[136] | 1 | #include <GSM3ShieldV1BaseProvider.h>
|
---|
| 2 | #include <GSM3ShieldV1ModemCore.h>
|
---|
| 3 | #include <Arduino.h>
|
---|
| 4 |
|
---|
| 5 | // Returns 0 if last command is still executing
|
---|
| 6 | // 1 if success
|
---|
| 7 | // >1 if error
|
---|
| 8 | int GSM3ShieldV1BaseProvider::ready()
|
---|
| 9 | {
|
---|
| 10 | theGSM3ShieldV1ModemCore.manageReceivedData();
|
---|
| 11 |
|
---|
| 12 | return theGSM3ShieldV1ModemCore.getCommandError();
|
---|
| 13 | };
|
---|
| 14 |
|
---|
| 15 | void GSM3ShieldV1BaseProvider::prepareAuxLocate(PGM_P str, char auxLocate[])
|
---|
| 16 | {
|
---|
| 17 | int i=0;
|
---|
| 18 | char c;
|
---|
| 19 |
|
---|
| 20 | do
|
---|
| 21 | {
|
---|
| 22 | c=pgm_read_byte_near(str + i);
|
---|
| 23 | auxLocate[i]=c;
|
---|
| 24 | i++;
|
---|
| 25 | } while (c!=0);
|
---|
| 26 | }
|
---|
| 27 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.