File

protocol-lwm2m/services/lwm2m-configuration.service.ts

Extends

Lwm2mClientService

Index

Properties
Methods

Constructor

constructor(client: FetchClient, alertService: AlertService)
Parameters :
Name Type Optional
client FetchClient No
alertService AlertService No

Methods

cleanUpBase64Data
cleanUpBase64Data(fileReadAsDataURL: string)
Parameters :
Name Type Optional
fileReadAsDataURL string No
Returns : any
createServer$
createServer$(server: ServerSettings)
Parameters :
Name Type Optional
server ServerSettings No
Returns : any
deleteServer$
deleteServer$(server: ServerSettings)
Parameters :
Name Type Optional
server ServerSettings No
Returns : any
detail$
detail$(urlCfg: UrlConfig)
Parameters :
Name Type Optional
urlCfg UrlConfig No
Returns : any
fetch$
fetch$(url: string, init?: IFetchOptions)
Parameters :
Name Type Optional
url string No
init IFetchOptions Yes
Returns : any
fetchSecurityModes$
fetchSecurityModes$()
Returns : any
fetchServerCertificates$
fetchServerCertificates$()
Returns : Observable<{}>
getDetailUrl
getDetailUrl(entity: Entity)
Parameters :
Name Type Optional
entity Entity No
Returns : string
getSecurityModeByScope
getSecurityModeByScope(scope: "useInBootstrapConnectivity" | "useInServerConnectivity")
Parameters :
Name Type Optional
scope "useInBootstrapConnectivity" | "useInServerConnectivity" No
Returns : void
getSecurityModes
getSecurityModes()
Returns : void
getServerCertificates
getServerCertificates()
Returns : void
getSettingsFor
getSettingsFor(urlCfg: UrlConfig)
Parameters :
Name Type Optional
urlCfg UrlConfig No
Returns : void
listServers
listServers()
Returns : void
listServers$
listServers$()
Returns : any
ngOnDestroy
ngOnDestroy()
Returns : void
onBeforeCreate
onBeforeCreate(entity: Entity)
Parameters :
Name Type Optional
entity Entity No
Returns : T
onBeforeUpdate
onBeforeUpdate(entity: Entity)
Parameters :
Name Type Optional
entity Entity No
Returns : T
update$
update$(entity: Entity)
Parameters :
Name Type Optional
entity Entity No
Returns : any
updateConfig
updateConfig(entity: T, endpoint: LWM2MEndpoint)
Parameters :
Name Type Optional
entity T No
endpoint LWM2MEndpoint No
Returns : void
validate
validate(certificate: string, type: ValidationType)
Parameters :
Name Type Optional
certificate string No
type ValidationType No
Returns : Observable<string>
detail
detail(entityOrId: string | number | T, filter: object)
Parameters :
Name Type Optional Default value
entityOrId string | number | T No
filter object No {}
Returns : Promise<IResult<T | any>>
fetch
fetch(url: string, init?: IFetchOptions)
Parameters :
Name Type Optional
url string No
init IFetchOptions Yes
Returns : Promise<IFetchResponse>
isLwm2mDevice
isLwm2mDevice(mo: Lwm2mManagedObject)
Parameters :
Name Type Optional
mo Lwm2mManagedObject No
Returns : any
update
update(entity: T)
Parameters :
Name Type Optional
entity T No
Returns : Promise<IResult<T | any>>

Properties

Protected baseUrl
Default value : `${agentBaseUrl}/v1`
certificates$
Type : Observable<string[]>
Default value : this._certificates$.asObservable()
deviceId
Type : string
securityModesByScope$
Type : Observable<SecurityModeDictionaryObj[]>
Default value : this._securityModeByScope$.asObservable()
securityModesRaw$
Type : Observable<SecurityModeDictionaryObj[]>
Default value : this._securityModeDictRaw$.asObservable()
servers$
Type : Observable<ServerSettings[]>
Default value : this._servers$.asObservable()
settings$
Type : Observable<T>
Default value : this._settings$.asObservable()
Protected listUrl
Type : string
Default value : 'device'

results matching ""

    No results matching ""