src.dualinventive.com/dinet/libdi-php/tests/can_raw_req_device_uid.php

14 lines
364 B
PHP

<?php
/* Publish a dinet time raw message */
$fd = di_can_open("vcan0");
di_can_set_nodeid($fd, "00000000000000000000000000000001");
$msg = [];
$msg['msgtype'] = DI_CAN_MSGTYPE_RAW;
$msg['ttype'] = DI_CAN_TRANSFERTYPE_REQUEST;
$msg['dtype'] = DI_CAN_RAW_DTYPE_DEVICE_UID;
$msg['dst_id'] = DI_CAN_NODEID_BROADCAST;
di_can_send($fd, $msg);
di_can_close($fd);