38 lines
828 B
Plaintext
38 lines
828 B
Plaintext
/* eslint-disable */
|
|
// @ts-nocheck
|
|
// @ts-ignore-start
|
|
|
|
import { Result } from '../interface.uts'
|
|
// import 'TIoTCoreXP2PBridge.h'
|
|
// import 'TIoTCoreAudioConfig.h'
|
|
// import 'TIoTCoreVideoConfig.h'
|
|
|
|
export const startServiceFunction = async function (
|
|
appKey: string,
|
|
appSecret: string,
|
|
productId: string,
|
|
deviceName: string,
|
|
xp2pInfo: string
|
|
): Promise<Result> {
|
|
try {
|
|
console.log(1111, appKey, appSecret, productId, deviceName, xp2pInfo)
|
|
// console.log(1111, TIoTCoreXP2PBridge)
|
|
// const config = TIoTP2PAPPConfig()
|
|
// console.log(1111, config)
|
|
return {
|
|
code: -1,
|
|
data: {},
|
|
message: '1'
|
|
}
|
|
} catch (error) {
|
|
console.log('startServiceFunction报错', error)
|
|
return {
|
|
code: -1,
|
|
data: {},
|
|
message: error.toString()
|
|
}
|
|
}
|
|
}
|
|
|
|
// @ts-ignore-end
|