Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Sending RFID commands - issueISO15693Command is private #39

Description

@yaneevH

Hello,

I am trying to use this code and the PN5180 to configure and then read commands from the MLX90129 Sensor Tag.

As per page 14 of this pdf I need to send specific commands to configure the sensors before reading first. Below is a screenshot of the first couple commands:

image

I am attempting at issuing just the first line right now as follows:

void mlxConfig(){
  uint8_t cmd[] = {0x43, 0x21, 0x09, 0x71, 0x70};
  uint8_t *readBuffer_0;
  nfc.issueISO15693Command(cmd,  sizeof(cmd), &readBuffer_0);
}

But am getting the following errors:

error: 'ISO15693ErrorCode PN5180ISO15693::issueISO15693Command(uint8_t*, uint8_t, uint8_t**)' is private
   ISO15693ErrorCode issueISO15693Command(uint8_t *cmd, uint8_t cmdLen, uint8_t **resultPtr);
                     ^
MLX_Comm:326: error: within this context
   nfc.issueISO15693Command(cmd,  sizeof(cmd), &readBuffer_0);

Is this not the way that that commands should be sent? If I put the data into the sendData function it compiles fine.
How would I go up about issuing the necessary commands for configuration and then reading from it as the pdf instructs using this code?

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