This example works. But there is a problem that it sends data with specified intervals. Even if I write zero size of sending bytes to the endpoint, the report goes to the computer, in which the number of bytes is zero.
How can I do so that data are sending only when I need it?