UNPKG

rasp-blefi

Version:

Experimental project that allow headless configuration of WIFI network on Rasperry PI using BLE.

53 lines (52 loc) 1.14 kB
/// <reference types="node" /> import { EventEmitter } from 'events'; /** * Network configurator configuration */ export interface NetworkConfiguratorConfig { /** * User defined custom services */ customServices?: any[]; /** * WIFI Network interface name */ ifName: string; /** * BLE device name */ deviceName: string; } /** * Main network configuration class */ export declare class NetworkConfigurator extends EventEmitter { /** * BLE services */ private readonly services; /** * BLE device name */ private readonly deviceName; /** * Network configuration */ private readonly network; /** * Construct instance * @constructor * @param config - network configuration */ constructor(config: NetworkConfiguratorConfig); /** * State change event handler * @param event - status change event */ private stateChange; /** * Adverstising start event handler * @param error - error */ private advertisingStart; }