Skip to content

Get Sendable Commands

Fetch commands that are currently supported by a device.

Request

php
use ThingsTelemetry\Traccar\Facades\Command;

$commands = Command::getSendableForDevice(deviceId: 6);

Result

Returns an Illuminate\Support\Collection<int, ThingsTelemetry\Traccar\Dto\CommandData>.

Released under the MIT License.