enody 0.2.0

SDK for Enody Lighting devices
Documentation
#![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc;

pub mod emitter;
#[cfg(feature = "remote")]
pub mod environment;
pub mod fixture;
pub mod host;
pub mod message;
pub mod runtime;
pub mod serialization;
pub mod source;
pub mod spectral;
#[cfg(all(feature = "std", feature = "cli"))]
pub mod token_store;
#[cfg(feature = "remote")]
pub mod update;
#[cfg(feature = "remote")]
pub mod usb;
pub mod wifi;
pub type Identifier = uuid::Uuid;
pub type Measurement = f32;

#[cfg(feature = "std")]
pub type DebugError = String;
#[cfg(not(feature = "std"))]
pub type DebugError = heapless::String<128>;

#[cfg(feature = "std")]
pub type USBError = String;
#[cfg(not(feature = "std"))]
pub type USBError = ();

#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
pub enum Error {
    Unknown,
    Debug(DebugError),
    Unsupported,
    USB(USBError),
    Serialization,
    Busy,
    InsufficientData,
    UnexpectedResponse,
    Timeout,
    Argument,
    Permission,
    Canceled,
}