diff --git a/src/makers/edatec/antennas.ts b/src/makers/edatec/antennas.ts new file mode 100644 index 000000000..7d92751e8 --- /dev/null +++ b/src/makers/edatec/antennas.ts @@ -0,0 +1,13 @@ +import { MakerAntenna } from '../antennaMakerTypes' + +const EDAIOT_2P5 = { + name: 'EDA-IoT Standard 2.5 dBi Antenna', + gain: 2.5, +} as MakerAntenna + +const EDAIOT_5P8 = { + name: 'EDA-IoT Fiberglass 5.8 dBi Antenna', + gain: 5.8, +} as MakerAntenna + +export default { EDAIOT_2P5, EDAIOT_5P8 } diff --git a/src/makers/edatec/hotspot.svg b/src/makers/edatec/hotspot.svg new file mode 100644 index 000000000..48c4930fe --- /dev/null +++ b/src/makers/edatec/hotspot.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/makers/edatec/hotspots.ts b/src/makers/edatec/hotspots.ts new file mode 100644 index 000000000..543967050 --- /dev/null +++ b/src/makers/edatec/hotspots.ts @@ -0,0 +1,28 @@ +import HotspotIcon from './hotspot.svg' +import { MakerHotspot } from '../hotspotMakerTypes' +import ANTENNAS from './antennas' + +const EDAIoTHotspotBLE = { + name: 'EDA-IoT Indoor Hotspot', + icon: HotspotIcon, + onboardType: 'BLE', + translations: { + en: { + diagnostic: + 'Diagnostic support allows EDATEC to identify issues with your EDA-IoT Hotspot in a secure way.\n\nEDATEC will never have access to private keys and will only ever be able to access your EDA-IoT Hotspot and not any other devices on your Network.\n\nIf you would like to opt-out of diagnostic support please email support@edatec.cn from the email used to purchase the Hotspot.', + power: [ + 'Attach the antenna and plug in the provided power adapter.', + 'Your EDA-IoT Hotspot will boot up, and its light will become Green when ready.', + ], + bluetooth: [ + 'Press the black button on your EDA-IoT Hotspot. Its light should turn blue.', + "Ensure your phone's bluetooth is on before proceeding", + ], + }, + }, + antenna: { + default: ANTENNAS.EDAIOT_2P5, + }, +} as MakerHotspot + +export default { EDAIoTHotspotBLE } diff --git a/src/makers/edatec/index.ts b/src/makers/edatec/index.ts new file mode 100644 index 000000000..728967486 --- /dev/null +++ b/src/makers/edatec/index.ts @@ -0,0 +1,9 @@ +import antennas from './antennas' +import hotspots from './hotspots' + +export default { + antennas, + hotspots, + id: 99999, // TODO: Get maker id from onboarding server + supportEmail: 'support@edatec.cn', +} diff --git a/src/makers/index.ts b/src/makers/index.ts index bf02fe967..11e7e520a 100644 --- a/src/makers/index.ts +++ b/src/makers/index.ts @@ -24,6 +24,7 @@ import milesight from './milesight' import deepernetwork from './deepernetwork' import { LangType, supportedLangs } from '../utils/i18n/i18nTypes' import { HotspotMakerLangField } from './hotspotMakerTypes' +import edatec from './edatec' export const Makers: Record = { PantherX, @@ -48,6 +49,7 @@ export const Makers: Record = { merryIoT, milesight, deepernetwork, + edatec, } export const AntennaModels = { @@ -75,6 +77,7 @@ export const AntennaModels = { ...merryIoT.antennas, ...milesight.antennas, ...deepernetwork.antennas, + ...edatec.antennas, } export const HotspotMakerModels = { @@ -100,6 +103,7 @@ export const HotspotMakerModels = { ...merryIoT.hotspots, ...milesight.hotspots, ...deepernetwork.hotspots, + ...edatec.hotspots, } export type HotspotType = keyof typeof HotspotMakerModels