πŸš€ Browse our open source reference applications to accelerate your IoT project!

Search
Documentation Results
End of results
Community Results
End of results
Support
Blues.io
Notehub.io
Shop
Sign In
Search
Documentation Results
End of results
Community Results
End of results
Support
Blues.io
Notehub.io
Shop
Γ—
HomeNotecardNotecard API ReferenceNotecard Guides
Notecard Firmware Updates
Notecard Walkthrough
Overview
Notecard Requests & Responses
JSON FundamentalsHow the Notecard works with JSON
Notecard Interfaces
Essential Requests
Time & Location Requests
Inbound Requests & Shared Data
Web Transactions
Low Power Design
Low Bandwidth Design
Host Firmware Update Requests
Advanced Notecard Configuration
Notecard Error and Status Codes
Rate this page Β 
  • β˜…
    β˜…
  • β˜…
    β˜…
  • β˜…
    β˜…
  • β˜…
    β˜…
  • β˜…
    β˜…
Can we improve this page? Send us feedbackRate this page
  • β˜…
    β˜…
  • β˜…
    β˜…
  • β˜…
    β˜…
  • β˜…
    β˜…
  • β˜…
    β˜…
Β© 2023 Blues Inc.Terms & ConditionsPrivacy
blues.ioTwitterLinkedInGitHubHackster.io
Disconnected
Notecard Disconnected
Having trouble connecting?

Try changing your Micro USB cable as some cables do not support transferring data. If that does not solve your problem, contact us at support@blues.com and we will get you set up with another tool to communicate with the Notecard.

Advanced Usage

The help command gives more info.

Connect a Notecard
Use USB to connect and start issuing requests from the browser.
Try Notecard Simulator
Experiment with Notecard's latest firmware on a Simulator assigned to your free Notehub account.

Don't have an account? Sign up

JSON Fundamentals

JavaScript Object Notation, or JSON, is a lightweight format for storing and transporting data of most any kind. It contains "fields" of your own choosing to convey strings, numbers, boolean values, other JSON objects, and arrays of values:

{
 "temp": 34.5,
 "skies": "cloudy",
 "windy": true
}

You can learn more about using JSON and its syntax in this online tutorial from Codewall .

How the Notecard works with JSON

As you work with the Notecard API, there are a few behaviors and caveats to keep in mind:

  • If a structure field is "" (string), 0 (int), or 0.0 (float), then that field may be omitted from all JSON Requests and will be omitted from JSON Responses. In the case of responses, the absence of an expected field should be interpreted as 0 or empty.

  • Representation of whole numbers will appear in JSON without a decimal point.

  • Integers greater than 2^31 and less than -2^31, while generally supported, are technically Undefined Behavior by the JSON specification and thus may be converted into floating point numbers by some implementations.

  • Sending JSON from one part of the software or service to another, and getting that JSON back from the software or service, does not guarantee the order of fields or the presence of any whitespace.

  • Although tabs, CR, and LF characters are technically allowable whitespace in JSON, they are not allowed in Notecard Requests or Bodies and will never be placed within Notecard Responses. The Notecard uses the ndjson technique of new line-delimited json.

  • The Notecard JSON libraries do support UTF-8, but there may be language representation limitations due to the constraints of JSON within embedded systems.

Notecard Requests & ResponsesNotecard Interfaces