Module airvantage Interface to the portal.

Type airvantage

airvantage.acknowledge(ticketid, status, err_msg, policy, persisted) Acknowledge a server message received with an acknowledgement ticket id.
airvantage.connectToServer() Force an immediate connection to the portal

airvantage.init() Initialize the module.
airvantage.newAsset(id) Creates and returns a new airvantage.asset#asset instance.
airvantage.triggerPolicy(policy) Forces the tables and unstructured data attached to a given policy to be sent immediately.

Type airvantage

Field(s)

airvantage.acknowledge(ticketid, status, err_msg, policy, persisted)

Acknowledge a server message received with an acknowledgement ticket id.

Parameters

airvantage.connectToServer()

Force an immediate connection to the portal


Return values

  1. non-nil upon success;
  2. nil + error message upon failure.

airvantage.init()

Initialize the module.

Return values

  1. non-nil upon success;
  2. nil + error message upon failure.

airvantage.newAsset(id)

Creates and returns a new airvantage.asset#asset instance.
The newly created racon.asset is not registered with the ReadyAgent. No message can be sent or received by the instance at this point. See asset.start method to register the newly created instance.

Parameter

Return values

  1. airvantage.asset#asset: instance on success.
  2. nil + error message otherwise.

airvantage.triggerPolicy(policy)

Forces the tables and unstructured data attached to a given policy to be sent immediately.

Parameter

Return values

  1. "ok" on success.
  2. nil followed by an error message otherwise.