--- id: http-api title: HTTP API sidebar_label: HTTP API --- :::info Methods and types for using the device [HTTP API](/docs/development/device/http-api) are exported ::: ```typescript import { Client, Types, Protobuf, SettingsManager } from "@meshtastic/js"; /** * Connection method */ const client = new Client(); SettingsManager.setDebugMode(Protobuf.LogLevelEnum.DEBUG); const connection = client.createHTTPConnection(); connection.connect("192.168.x.x"); const restartDevice: Promise = connection.restartDevice(); const getStatistics: Promise = connection.getStatistics(); const getNetworks: Promise = connection.getNetworks(); const getSPIFFS: Promise = connection.getSPIFFS(); const deleteSPIFFS: Promise = connection.deleteSPIFFS(); const blinkLED: Promise = connection.blinkLED(); ```