| Members | Descriptions |
|---|---|
public def attn(card,mode,files,seconds,payload,start) |
Configure interrupt detection between a host and Notecard. |
public def time(card) |
Retrieve the current time and date from the Notecard. |
public def status(card) |
Retrieve the status of the Notecard. |
public def temp(card,minutes) |
Retrieve the current temperature from the Notecard. |
public def version(card) |
Retrieve firmware version information from the Notecard. |
public def voltage(card,hours,offset,vmax,vmin) |
Retrieve current and historical voltage info from the Notecard. |
public def wireless(card,mode,apn) |
Retrieve wireless modem info or customize modem behavior. |
public def attn(card,mode,files,seconds,payload,start)
Configure interrupt detection between a host and Notecard.
-
cardThe current Notecard object. -
modeThe attn mode to set. -
filesA collection of notefiles to watch. -
secondsA timeout to use when arming attn mode. -
payloadWhen using sleep mode, a payload of data from the host that the Notecard should hold in memory until retrieved by the host. -
startWhen using sleep mode and the host has reawakened, request the Notecard to return the stored payload.
string The result of the Notecard request.
public def time(card)
Retrieve the current time and date from the Notecard.
cardThe current Notecard object.
string The result of the Notecard request.
public def status(card)
Retrieve the status of the Notecard.
cardThe current Notecard object.
string The result of the Notecard request.
public def temp(card,minutes)
Retrieve the current temperature from the Notecard.
-
cardThe current Notecard object. -
minutesIf specified, creates a templated _temp.qo file that gathers Notecard temperature value at the specified interval.
string The result of the Notecard request.
public def version(card)
Retrieve firmware version information from the Notecard.
cardThe current Notecard object.
string The result of the Notecard request.
public def voltage(card,hours,offset,vmax,vmin)
Retrieve current and historical voltage info from the Notecard.
-
cardThe current Notecard object. -
hoursNumber of hours to analyze. -
offsetNumber of hours to offset. -
vmaxmax voltage level to report. -
vminmin voltage level to report.
string The result of the Notecard request.
public def wireless(card,mode,apn)
Retrieve wireless modem info or customize modem behavior.
-
cardThe current Notecard object. -
modeThe wireless module mode to set. -
apnAccess Point Name (APN) when using an external SIM.
string The result of the Notecard request.
| Members | Descriptions |
|---|---|
public def default(card,name,text) |
Perform an env.default request against a Notecard. |
public def get(card,name) |
Perform an env.get request against a Notecard. |
public def modified(card) |
Perform an env.modified request against a Notecard. |
public def set(card,name,text) |
Perform an env.set request against a Notecard. |
public def default(card,name,text)
Perform an env.default request against a Notecard.
-
cardThe current Notecard object. -
nameThe name of an environment var to set a default for. -
textThe default value. Omit to delete the default.
string The result of the Notecard request.
public def get(card,name)
Perform an env.get request against a Notecard.
-
cardThe current Notecard object. -
nameThe name of an environment variable to get.
string The result of the Notecard request.
public def modified(card)
Perform an env.modified request against a Notecard.
cardThe current Notecard object.
string The result of the Notecard request.
public def set(card,name,text)
Perform an env.set request against a Notecard.
-
cardThe current Notecard object. -
nameThe name of an environment variable to set. -
textThe variable value. Omit to delete.
string The result of the Notecard request.
| Members | Descriptions |
|---|---|
public def changes(card,tracker,files) |
Perform individual or batch queries on Notefiles. |
public def delete(card,files) |
Delete individual notefiles and their contents. |
public def stats(card) |
Obtain statistics about local notefiles. |
public def pendingChanges(card) |
Retrieve information about pending Notehub changes. |
public def changes(card,tracker,files)
Perform individual or batch queries on Notefiles.
-
cardThe current Notecard object. -
trackerA developer-defined tracker ID. -
filesA list of Notefiles to retrieve changes for.
string The result of the Notecard request.
public def delete(card,files)
Delete individual notefiles and their contents.
-
cardThe current Notecard object. -
filesA list of Notefiles to delete.
string The result of the Notecard request.
public def stats(card)
Obtain statistics about local notefiles.
cardThe current Notecard object.
string The result of the Notecard request.
public def pendingChanges(card)
Retrieve information about pending Notehub changes.
cardThe current Notecard object.
string The result of the Notecard request.
| Members | Descriptions |
|---|---|
public def set(card,product,sn,mode,outbound,inbound,duration,sync,align,voutbound,vinbound,host) |
Configure Notehub behavior on the Notecard. |
public def sync(card) |
Initiate a sync of the Notecard to Notehub. |
public def syncStatus(card,sync) |
Retrieve the status of a sync request. |
public def status(card) |
Retrieve the status of the Notecard's connection. |
public def log(card,text,alert,sync) |
Send a log request to the Notecard. |
public def get(card) |
Retrieve the current Notehub configuration parameters. |
Configure Notehub behavior on the Notecard.
-
cardThe current Notecard object. -
productThe ProductUID of the project. -
snThe Serial Number of the device. -
modeThe sync mode to use. -
outboundMax time to wait to sync outgoing data. -
inboundMax time to wait to sync incoming data. -
durationIf in continuous mode, the amount of time, in minutes, of each session. -
syncIf in continuous mode, whether to automatically sync each time a change is detected on the device or Notehub. -
alignTo align syncs to a regular time-interval, as opposed to using max time values. -
voutboundOverrides "outbound" with a voltage-variable value. -
vinboundOverrides "inbound" with a voltage-variable value. -
hostURL of an alternative or private Notehub instance.
string The result of the Notecard request.
public def sync(card)
Initiate a sync of the Notecard to Notehub.
cardThe current Notecard object.
string The result of the Notecard request.
public def syncStatus(card,sync)
Retrieve the status of a sync request.
-
cardThe current Notecard object. -
syncTrue if sync should be auto-initiated pending outbound data.
string The result of the Notecard request.
public def status(card)
Retrieve the status of the Notecard's connection.
cardThe current Notecard object.
string The result of the Notecard request.
Send a log request to the Notecard.
-
cardThe current Notecard object. -
textThe ProductUID of the project. -
alertTrue if the message is urgent. -
syncWhether to sync right away.
string The result of the Notecard request.
public def get(card)
Retrieve the current Notehub configuration parameters.
cardThe current Notecard object.
string The result of the Notecard request.
| Members | Descriptions |
|---|---|
public def changes(card,file,tracker,maximum,start,stop,deleted,delete) |
Incrementally retrieve changes within a Notefile. |
public def get(card,file,note_id,delete,deleted) |
Retrieve a note from an inbound or DB Notefile. |
public def delete(card,file,note_id) |
Delete a DB note in a Notefile by its ID. |
public def update(card,file,note_id,body,payload) |
Update a note in a DB Notefile by ID. |
public def template(card,file,body,length) |
Create a template for new Notes in a Notefile. |
Incrementally retrieve changes within a Notefile.
-
cardThe current Notecard object. -
fileThe name of the file. -
trackerA developer-defined tracker ID. -
maximumMaximum number of notes to return. -
startShould tracker be reset to the beginning before a get. -
stopShould tracker be deleted after get. -
deletedShould deleted notes be returned. -
deleteShould notes in a response be auto-deleted.
string The result of the Notecard request.
Retrieve a note from an inbound or DB Notefile.
-
cardThe current Notecard object. -
fileThe inbound or DB notefile to retrieve a Notefile from. -
note_id(DB files only) The ID of the note to retrieve. -
deleteWhether to delete the note after retrieval. -
deletedWhether to allow retrieval of a deleted note.
string The result of the Notecard request.
public def delete(card,file,note_id)
Delete a DB note in a Notefile by its ID.
-
cardThe current Notecard object. -
fileThe file name of the DB notefile. -
note_idThe id of the note to delete.
string The result of the Notecard request.
public def update(card,file,note_id,body,payload)
Update a note in a DB Notefile by ID.
-
cardThe current Notecard object. -
fileThe file name of the DB notefile. -
note_idThe id of the note to update. -
bodyThe JSON object to add to the note. -
payloadThe base64-encoded JSON payload to add to the note.
string The result of the Notecard request.
public def template(card,file,body,length)
Create a template for new Notes in a Notefile.
-
cardThe current Notecard object. -
fileThe file name of the notefile. -
bodyA sample JSON body that specifies field names and values as "hints" for the data type. -
lengthIf provided, the maximum length of a payload that can be sent in Notes for the template Notefile.
string The result of the Notecard request.
| Members | Descriptions |
|---|---|
public def serialReadByte(port) |
Read a single byte from a Notecard. |
public def serialReset(port) |
Send a reset command to a Notecard. |
public def serialTransaction(port,req,debug) |
Perform a single write to and read from a Notecard. |
public def serialCommand(port,req,debug) |
Perform a single write to and read from a Notecard. |
class notecard::notecard::Notecard |
Base Notecard class. |
class notecard::notecard::OpenI2C |
Notecard class for I2C communication. |
class notecard::notecard::OpenSerial |
Notecard class for Serial communication. |
public def serialReadByte(port)
Read a single byte from a Notecard.
public def serialReset(port)
Send a reset command to a Notecard.
public def serialTransaction(port,req,debug)
Perform a single write to and read from a Notecard.
public def serialCommand(port,req,debug)
Perform a single write to and read from a Notecard.
Base Notecard class.
Primary Notecard Class, which provides a shared init to reset the Notecard via Serial or I2C.
| Members | Descriptions |
|---|---|
public def __init__(self) |
Initialize the Notecard through a reset. |
public def __init__(self)
Initialize the Notecard through a reset.
class notecard::notecard::OpenI2C
: public notecard.notecard.Notecard
Notecard class for I2C communication.
| Members | Descriptions |
|---|---|
public i2c |
|
public addr |
|
public max |
|
public def Transaction(self,req) |
Perform a Notecard transaction and return the result. |
public def Reset(self) |
Reset the Notecard. |
public def lock(self) |
Lock the I2C port so the host can interact with the Notecard. |
public def unlock(self) |
Unlock the I2C port. |
public def __init__(self,i2c,address,max_transfer,debug) |
Initialize the Notecard before a reset. |
public i2c
public addr
public max
public def Transaction(self,req)
Perform a Notecard transaction and return the result.
public def Reset(self)
Reset the Notecard.
public def lock(self)
Lock the I2C port so the host can interact with the Notecard.
public def unlock(self)
Unlock the I2C port.
Initialize the Notecard before a reset.
class notecard::notecard::OpenSerial
: public notecard.notecard.Notecard
Notecard class for Serial communication.
| Members | Descriptions |
|---|---|
public uart |
|
public lock |
|
public def Command(self,req) |
Perform a Notecard command and exit with no response. |
public def Transaction(self,req) |
Perform a Notecard transaction and return the result. |
public def Reset(self) |
Reset the Notecard. |
public def __init__(self,uart_id,debug) |
Initialize the Notecard before a reset. |
public uart
public lock
public def Command(self,req)
Perform a Notecard command and exit with no response.
public def Transaction(self,req)
Perform a Notecard transaction and return the result.
public def Reset(self)
Reset the Notecard.
public def __init__(self,uart_id,debug)
Initialize the Notecard before a reset.
public def validate_card_object(func)
Ensure that the passed-in card is a Notecard.
Generated by Moxygen
