| 38 | } // namespace |
| 39 | |
| 40 | void init() |
| 41 | { |
| 42 | Serial.begin(SERIAL_BAUD_RATE); |
| 43 | Serial.systemDebugOutput(true); |
| 44 | Serial.swap(); //swap to GPIO13 and GPIO15 |
| 45 | |
| 46 | atClient = new AtClient(Serial); |
| 47 | |
| 48 | // The commands below will be queued and executed |
| 49 | // in the same order as defined below. |
| 50 | // One command needs to finish successfully in order for the next one to start. |
| 51 | atClient->send("ATE0\r"); |
| 52 | atClient->send("AT+CAMSTOP\r"); |
| 53 | |
| 54 | atClient->send("AT+CAMSTART=1\r"); |
| 55 | atClient->send("AT+CAMCAP\r", processSize); |
| 56 | } |
nothing calls this directly
no test coverage detected