![]() This function accepts a command string (for example, "note.add") and initializes a JSON Object to return to the host. Public J * newCommand (const char * command)Ĭreates a new command object for population by the host. This function accepts a request string (for example, "note.add") and initializes a JSON Object to return to the host. Public J * newRequest (const char * request)Ĭreates a new request object for population by the host. Public void clearDebugOutputStream (void) This function takes a Stream object (for example, Serial) and configures it as a source for writing debug messages during development. Public void setDebugOutputStream (Stream & dbgserial) This function configures the Notecard to use Serial for communication with the host. Initialize the Notecard for Serial communication. Public void begin (HardwareSerial & serial, int speed) This function configures the Notecard to use the I2C bus for communication with the host. Public void begin (uint32_t i2cAddress,uint32_t i2cMax, TwoWire & wirePort) Wake it up periodically and return saved state to the host. Learn how the Notecard can be used to put a host to sleep, save some state for the host,.This code is also used by the sensor tutorial. Learn how to collect sensor data and send it to the cloud using the Notecard.To send outbound Notes that use minimal bandwidth. Learn how to use the Notecard to manage an inbound queue of messages using.Learn how to use the Notecard to poll for inbound messages at a defined.Sensor measurements "offline", and performing uploads on a periodic basis. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |