Fork of the excellent esp8266-react - https://github.com/rjwats/esp8266-react
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
280 B

  1. import { APSettings } from "./types";
  2. export const AP_MODE_ALWAYS = 0;
  3. export const AP_MODE_DISCONNECTED = 1;
  4. export const AP_NEVER = 2;
  5. export const isAPEnabled = ({ provision_mode }: APSettings) => provision_mode === AP_MODE_ALWAYS || provision_mode === AP_MODE_DISCONNECTED;