BaseDeviceType extends Model
Table of Contents
- DOWNLINK_MODE_CALLBACK = 1
- CALLBACK
- DOWNLINK_MODE_DIRECT = 0
- DIRECT
- DOWNLINK_MODE_MANAGED = 3
- MANAGED
- DOWNLINK_MODE_NONE = 2
- NONE
- PAYLOAD_TYPE_CUSTOM_GRAMMAR = 3
- Custom grammar
- PAYLOAD_TYPE_DISPLAY_IN_ASCII = 5
- Display in ASCII
- PAYLOAD_TYPE_GEOLOCATION = 4
- Geolocation
- PAYLOAD_TYPE_RADIO_PLANNING_FRAME = 6
- Radio planning frame
- PAYLOAD_TYPE_REGULAR = 2
- Regular (raw payload)
- PAYLOAD_TYPE_SENSITV2 = 9
- Sensitv2
- $alertEmail : string|null
- Email address to contact in case of problems occurring while executing a callback. This field can be unset when updating.
- $automaticRenewal : bool|null
- Allows the automatic renewal of devices attached to this device type
- $description : string|null
- The device type's description
- $downlinkDataString : string|null
- Downlink data to be sent to the devices of this device type if the downlinkMode is equal to 0.
- $downlinkMode : int|null
- The downlink mode to use for the devices of this device type
- $keepAlive : int|null
- Keep alive period in seconds (0 to not keep alive else 1800 second minimum)
- $name : string|null
- The device type's name
- $payloadConfig : string|null
- The payload configuration. Required if the payload type is Custom, else ignored.
- $payloadType : int|null
- The payload type
- from() : static
- Initializing a model from an array
- getAlertEmail() : string
- Getter for alertEmail
- getAutomaticRenewal() : bool
- Getter for automaticRenewal
- getDescription() : string
- Getter for description
- getDownlinkDataString() : string
- Getter for downlinkDataString
- getDownlinkMode() : int
- Getter for downlinkMode
- getKeepAlive() : int
- Getter for keepAlive
- getName() : string
- Getter for name
- getPayloadConfig() : string
- Getter for payloadConfig
- getPayloadType() : int
- Getter for payloadType
- jsonSerialize() : array<string|int, mixed>
- setAlertEmail() : static
- Setter for alertEmail
- setAutomaticRenewal() : static
- Setter for automaticRenewal
- setDescription() : static
- Setter for description
- setDownlinkDataString() : static
- Setter for downlinkDataString
- setDownlinkMode() : static
- Setter for downlinkMode
- setKeepAlive() : static
- Setter for keepAlive
- setName() : static
- Setter for name
- setPayloadConfig() : static
- Setter for payloadConfig
- setPayloadType() : static
- Setter for payloadType
Constants
DOWNLINK_MODE_CALLBACK
CALLBACK
public
mixed
DOWNLINK_MODE_CALLBACK
= 1
DOWNLINK_MODE_DIRECT
DIRECT
public
mixed
DOWNLINK_MODE_DIRECT
= 0
DOWNLINK_MODE_MANAGED
MANAGED
public
mixed
DOWNLINK_MODE_MANAGED
= 3
DOWNLINK_MODE_NONE
NONE
public
mixed
DOWNLINK_MODE_NONE
= 2
PAYLOAD_TYPE_CUSTOM_GRAMMAR
Custom grammar
public
mixed
PAYLOAD_TYPE_CUSTOM_GRAMMAR
= 3
PAYLOAD_TYPE_DISPLAY_IN_ASCII
Display in ASCII
public
mixed
PAYLOAD_TYPE_DISPLAY_IN_ASCII
= 5
PAYLOAD_TYPE_GEOLOCATION
Geolocation
public
mixed
PAYLOAD_TYPE_GEOLOCATION
= 4
PAYLOAD_TYPE_RADIO_PLANNING_FRAME
Radio planning frame
public
mixed
PAYLOAD_TYPE_RADIO_PLANNING_FRAME
= 6
PAYLOAD_TYPE_REGULAR
Regular (raw payload)
public
mixed
PAYLOAD_TYPE_REGULAR
= 2
PAYLOAD_TYPE_SENSITV2
Sensitv2
public
mixed
PAYLOAD_TYPE_SENSITV2
= 9
Properties
$alertEmail
Email address to contact in case of problems occurring while executing a callback. This field can be unset when updating.
protected
string|null
$alertEmail
= null
$automaticRenewal
Allows the automatic renewal of devices attached to this device type
protected
bool|null
$automaticRenewal
= null
$description
The device type's description
protected
string|null
$description
= null
$downlinkDataString
Downlink data to be sent to the devices of this device type if the downlinkMode is equal to 0.
protected
string|null
$downlinkDataString
= null
It must be an 8 byte length message given in hexadecimal string format.
$downlinkMode
The downlink mode to use for the devices of this device type
protected
int|null
$downlinkMode
= null
$keepAlive
Keep alive period in seconds (0 to not keep alive else 1800 second minimum)
protected
int|null
$keepAlive
= null
$name
The device type's name
protected
string|null
$name
= null
$payloadConfig
The payload configuration. Required if the payload type is Custom, else ignored.
protected
string|null
$payloadConfig
= null
$payloadType
The payload type
protected
int|null
$payloadType
= null
Methods
from()
Initializing a model from an array
public
static from(array<string|int, mixed> $params) : static
Parameters
- $params : array<string|int, mixed>
-
Pass this parameter if you want to initial property value from an array. See API reference for all property names and types
Tags
Return values
static —getAlertEmail()
Getter for alertEmail
public
getAlertEmail() : string
Return values
string —Email address to contact in case of problems occurring while executing a callback. This field can be unset when updating.
getAutomaticRenewal()
Getter for automaticRenewal
public
getAutomaticRenewal() : bool
Return values
bool —Allows the automatic renewal of devices attached to this device type
getDescription()
Getter for description
public
getDescription() : string
Return values
string —The device type's description
getDownlinkDataString()
Getter for downlinkDataString
public
getDownlinkDataString() : string
Return values
string —Downlink data to be sent to the devices of this device type if the downlinkMode is equal to 0. It must be an 8 byte length message given in hexadecimal string format.
getDownlinkMode()
Getter for downlinkMode
public
getDownlinkMode() : int
Return values
int —The downlink mode to use for the devices of this device type
getKeepAlive()
Getter for keepAlive
public
getKeepAlive() : int
Return values
int —Keep alive period in seconds (0 to not keep alive else 1800 second minimum)
getName()
Getter for name
public
getName() : string
Return values
string —The device type's name
getPayloadConfig()
Getter for payloadConfig
public
getPayloadConfig() : string
Return values
string —The payload configuration. Required if the payload type is Custom, else ignored.
getPayloadType()
Getter for payloadType
public
getPayloadType() : int
Return values
int —The payload type
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —setAlertEmail()
Setter for alertEmail
public
setAlertEmail(string $alertEmail) : static
Parameters
- $alertEmail : string
-
Email address to contact in case of problems occurring while executing a callback. This field can be unset when updating.
Return values
static —To use in method chains
setAutomaticRenewal()
Setter for automaticRenewal
public
setAutomaticRenewal(bool $automaticRenewal) : static
Parameters
- $automaticRenewal : bool
-
Allows the automatic renewal of devices attached to this device type
Return values
static —To use in method chains
setDescription()
Setter for description
public
setDescription(string $description) : static
Parameters
- $description : string
-
The device type's description
Return values
static —To use in method chains
setDownlinkDataString()
Setter for downlinkDataString
public
setDownlinkDataString(string $downlinkDataString) : static
Parameters
- $downlinkDataString : string
-
Downlink data to be sent to the devices of this device type if the downlinkMode is equal to 0. It must be an 8 byte length message given in hexadecimal string format.
Return values
static —To use in method chains
setDownlinkMode()
Setter for downlinkMode
public
setDownlinkMode(int $downlinkMode) : static
Parameters
- $downlinkMode : int
-
The downlink mode to use for the devices of this device type
Return values
static —To use in method chains
setKeepAlive()
Setter for keepAlive
public
setKeepAlive(int $keepAlive) : static
Parameters
- $keepAlive : int
-
Keep alive period in seconds (0 to not keep alive else 1800 second minimum)
Return values
static —To use in method chains
setName()
Setter for name
public
setName(string $name) : static
Parameters
- $name : string
-
The device type's name
Return values
static —To use in method chains
setPayloadConfig()
Setter for payloadConfig
public
setPayloadConfig(string $payloadConfig) : static
Parameters
- $payloadConfig : string
-
The payload configuration. Required if the payload type is Custom, else ignored.
Return values
static —To use in method chains
setPayloadType()
Setter for payloadType
public
setPayloadType(int $payloadType) : static
Parameters
- $payloadType : int
-
The payload type
Return values
static —To use in method chains