@hello.nrfcloud.com/proto
Version:
Documents the communication protocol between the hello.nrfcloud.com backend and the web application
15 lines (13 loc) • 322 B
text/typescript
import { FOTAJobTarget } from './FOTAJob.js'
export const bundleIdToType = (bundleId: string): FOTAJobTarget | null => {
const type = bundleId.split('*')[0]
switch (type) {
case 'APP':
return FOTAJobTarget.application
case 'MODEM':
case 'MDM_FULL':
return FOTAJobTarget.modem
default:
return null
}
}