@iotize/tap
Version:
IoTize Device client for Javascript
116 lines (115 loc) • 3.02 kB
TypeScript
/**
* Generated file. Do not edit
*/
import { TapResponse } from '@iotize/tap';
import { SinglePacketStoreInfo } from './models';
import { SinglePacket } from './models';
import { SinglePacketChunk } from './models';
import { AbstractService, ServiceCallType } from '@iotize/tap';
export declare class SinglePacketService extends AbstractService {
resources: {
getInfo: ServiceCallType<void, SinglePacketStoreInfo>;
writeAndExecuteBytes: ServiceCallType<Uint8Array, void>;
writeAndExecute: ServiceCallType<SinglePacket, void>;
writeChunk: ServiceCallType<SinglePacketChunk, void>;
executeSinglePacketInStore: ServiceCallType<number, void>;
};
/**
* Get information concerning Single Packet Store Status
*
* LWM2M path: /1024//81
*
* @tapVersion(">=1.13")
* @return
*/
getInfo(): Promise<TapResponse<SinglePacketStoreInfo>>;
/**
*
*
* LWM2M path: /1024//81
*
* @tapVersion(">=1.13")
* @return call options
*/
getInfoCall(): ServiceCallType;
/**
* Send a complete Small Single Packet
*
* LWM2M path: /1024//80
*
* @tapVersion(">=1.13")
* @param data input
* @return
*/
writeAndExecuteBytes(data: Uint8Array): Promise<TapResponse<void>>;
/**
*
*
* LWM2M path: /1024//80
*
* @tapVersion(">=1.13")
* @param data input
* @return call options
*/
writeAndExecuteBytesCall(data: Uint8Array): ServiceCallType;
/**
* Send and execute the given Single Packet in one request
*
* LWM2M path: /1024//80
*
* @tapVersion(">=1.13")
* @param data input
* @return
*/
writeAndExecute(data: SinglePacket): Promise<TapResponse<void>>;
/**
*
*
* LWM2M path: /1024//80
*
* @tapVersion(">=1.13")
* @param data input
* @return call options
*/
writeAndExecuteCall(data: SinglePacket): ServiceCallType;
/**
* Write single packet chunk
*
* LWM2M path: /1024//82
*
* @tapVersion(">=1.13")
* @param data input
* @return
*/
writeChunk(data: SinglePacketChunk): Promise<TapResponse<void>>;
/**
*
*
* LWM2M path: /1024//82
*
* @tapVersion(">=1.13")
* @param data input
* @return call options
*/
writeChunkCall(data: SinglePacketChunk): ServiceCallType;
/**
* Execute single packet stored in Tap storage
*
* LWM2M path: /1024//83
*
* @tapVersion(">=1.13")
* @param crc input
* @return
*/
executeSinglePacketInStore(crc: number): Promise<TapResponse<void>>;
/**
*
*
* LWM2M path: /1024//83
*
* @tapVersion(">=1.13")
* @param crc input
* @return call options
*/
executeSinglePacketInStoreCall(crc: number): ServiceCallType;
}