class EdgeAI::Devices

Overview

details of any devices that are connected to the system

Defined in:

controllers/devices.cr

Constant Summary

PARSER_LIST = ["application/json"]

details of any devices that are connected to the system

RESPONDER_LIST = ["application/json", "application/yaml"]

details of any devices that are connected to the system

Class Method Summary

Instance Method Summary

Instance methods inherited from class EdgeAI::Base

bad_media_type(error) : AC::Error::ContentResponse bad_media_type, invalid_param(error) : AC::Error::ParameterResponse invalid_param, not_found(error) : NamedTuple(error: String | Nil) not_found, set_request_id set_request_id

Class Method Detail

def self.base_route #

Helper for obtaining base route


def self.video_devices(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts) #

Helper methods for performing redirect_to calls


Instance Method Detail

def base_route(*args, **options) #

Helper for obtaining base route


def base_route(*args, **options, &) #

Helper for obtaining base route


def gpio_lines : Array(GPIOLines) #

list the available general purpose input outputs


[View source]
def tpu_devices : Array(NamedTuple(type: String, path: String)) #

list the available TPUs


[View source]
def video_devices : Array(VideoDevice) #

list the local video devices and their capabilities


[View source]