MentraOS / mobile /modules /bluetooth-sdk /src /ota-server /MentraOtaServerModule.web.ts
Anirudh1950's picture
Add files using upload-large-folder tool
b450976 verified
Raw History Blame Contribute Delete
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")