PHP Sigfox Client

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

CALLBACK

public mixed DOWNLINK_MODE_CALLBACK = 1

DIRECT

public mixed DOWNLINK_MODE_DIRECT = 0

MANAGED

public mixed DOWNLINK_MODE_MANAGED = 3

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.

$keepAlive

Keep alive period in seconds (0 to not keep alive else 1800 second minimum)

protected int|null $keepAlive = null

$payloadConfig

The payload configuration. Required if the payload type is Custom, else ignored.

protected string|null $payloadConfig = 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
throws
DeserializeException

If provided an invalid type to a property

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.

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.

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Tags
inheritdoc
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

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

Search results