Skip to content

We need to take an array of #2

Description

@red15530
    @Override
    public void handleMessage(Message msg) {
        switch (msg.what) {
            case UsbService.MESSAGE_FROM_SERIAL_PORT:
                String data = (String) msg.obj;
                mActivity.get().display.append(data);
                break;
        }
    }

I'm sending a request which consists of 3 or 8 bytes. In response, I have to get an array of the same 3 or 8 bytes. How do I do that? Send I got.
byte[] cats = {0x00, 0x05, 0x3F};
usbService.write(cats);
Here's how to accept and display, I do not know ...
Can you help me?
Sorry for my English.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions