Click or drag to resize

GatewayAPI Class

GatewayAPI is the api responsible for performing operations on gateway, like chargng phone, stop charging phone, and requesting battery status.
Inheritance Hierarchy
SystemObject
  ErrorClass
    API
      Nexpaq.APIsProductAPI
        Nexpaq.APIsGatewayAPI

Namespace:  Nexpaq.APIs
Assembly:  NexpaqCore (in NexpaqCore.dll) Version: 1.0.6767.24310
Syntax
C#
public class GatewayAPI : ProductAPI

The GatewayAPI type exposes the following members.

Constructors
  NameDescription
Public methodGatewayAPI
Initializes a new instance of the GatewayAPI class.
Top
Methods
  NameDescription
Protected methodBSLInfoReceivedHandler
Handles when product BSL info received
(Inherited from ProductAPI.)
Public methodChangeMode
Changes the mode of product.
(Inherited from ProductAPI.)
Public methodChargePhone
Executes a command to start charging phone.
Public methodEraseFirmware
Erases the firmware in specified product.
(Inherited from ProductAPI.)
Public methodGetByUUID
Gets the gateway by UUID.
Public methodGetProductByUUID
Gets the product by UUID.
(Overrides ProductAPIGetProductByUUID(UUID).)
Public methodGetTypeID
Gets the product type identifier from known products or cloud.
(Inherited from ProductAPI.)
Public methodInstallFirmware
Installs the firmware by version.
(Inherited from ProductAPI.)
Public methodInstallLatestFirmware
Installs the latest firmware.
(Inherited from ProductAPI.)
Public methodInstallSpecificFirmware
Installs specific firmware to module, type must be compatible. It is impossible to install MAX firmware to MSP and vice versa.
(Inherited from ProductAPI.)
Public methodRequestBasicData
Requests the basic data from product.
(Inherited from ProductAPI.)
Public methodRequestBatteryStatus
Request the battery ststus.
Public methodRequestFirmwareVersion
Requests the firmware version of product.
(Inherited from ProductAPI.)
Public methodSetManifest
Sets the manifest to product.
(Inherited from ProductAPI.)
Public methodStopChargingPhone
Executes a command to stop charging phone.
Protected methodTriggerError (Inherited from ErrorClass.)
Top
Events
  NameDescription
Public eventBasicInfoReceived
Occurs when basic data for the gateway received.
Public eventBatteryStateReceived
Occurs when battery state received.
Public eventBootloaderUpdateAvailable
Occurs when bootloader update available.
Public eventBSLInfoReceived
occurs when bsl information are received.
(Inherited from ProductAPI.)
Public eventConnected
Occurs when gateway connected.
Public eventDisconnected
Occurs when gateway disconnected.
Public eventError (Inherited from ErrorClass.)
Public eventFirmwareFlashed
Occurs when firmware was flashed to product.
(Inherited from ProductAPI.)
Public eventFirmwareUpdateAvailable
Occurs when firmware update available.
Public eventInitialized
Occurs when gateway initialized.
Public eventManifestSet
Occurs when manifest set to the gateway.
Public eventSwitchedToAppMode
Occurs when basic data for the gateway received.
Public eventTypeRecognised
Occurs when gateway type recognised.
Public eventUUIDRecieved
Occurs when gateway UUID recieved.
Top
Fields
  NameDescription
Protected fieldAPI
Main Api.
(Inherited from ProductAPI.)
Protected fieldType
Product type.
(Inherited from ProductAPI.)
Top
See Also