

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.

