int WINAPI tdSensor( char * protocol, int protocolLen, char * model, int modelLen, int * id, int * dataTypes ) Use this function to iterate over all sensors. Iterate until TELLSTICK_SUCCESS is not returned. Parameters: [out] protocol A by ref string where the protocol of the sensor will be placed. [in] protocolLen The length of the protocol parameter. [out] model A by ref string where the model of the sensor will be placed. [in] modelLen The length of the model parameter. [out] id A by ref int where the id of the sensor will be placed. [out] dataTypes A by ref int with flags for the supported sensor values. Returns: TELLSTICK_SUCCESS if there is more sensors to be fetched. #### int tdSensor(protocol, protocolLen, model, modelLen, id, dataTypes) char * protocol int protocolLen char * model int modelLen int * id int * dataTypes #### TYPEMAP int * T_PTR #### my $protocol = "aaaaaaaaaaaaaaaaaaaaaaaaa"; my $model = "bbbbbbbbbbbbbbbbbbbbbbbbb"; my $sensorId = 1; my $dataTypes = 2; while (TellStick::tdSensor($protocol, 25, $model, 25, $sensorId, $dataTypes) == TELLSTICK_SUCCESS) { print "res: $res, protocol: $protocol, model: $model, sensorId: $sensorId, dataTypes: $dataTypes\n"; }