Download mobile/modules/bluetooth-sdk/src/ota-server/MentraOtaServerModule.web.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 617 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/modules/bluetooth-sdk/src/ota-server/MentraOtaServerModule.web.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/modules/bluetooth-sdk/src/ota-server/MentraOtaServerModule.web.ts
-
curl -L -o MentraOtaServerModule.web.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/modules/bluetooth-sdk/src/ota-server/MentraOtaServerModule.web.ts
617 Bytes
| import {NativeModule, registerWebModule} from "expo" | |
| import type {MentraOtaServerModuleEvents, OtaServerResult} from "./MentraOtaServer.types" | |
| class MentraOtaServerModule extends NativeModule<MentraOtaServerModuleEvents> { | |
| async startOtaServer(): Promise<OtaServerResult> { | |
| throw new Error("The OTA server is only available in native apps.") | |
| } | |
| async stopOtaServer(): Promise<void> {} | |
| async waitForWifiAddress(): Promise<string> { | |
| throw new Error("The OTA server is only available in native apps.") | |
| } | |
| } | |
| export default registerWebModule(MentraOtaServerModule, "MentraOtaServer") | |