ATECC508A INTEGER POINTER *data ??

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Kisen
Posts: 73
Joined: Fri Jan 24, 2020 10:38 am
Has thanked: 4 times
Been thanked: 2 times

ATECC508A INTEGER POINTER *data ??

Post by Kisen »

Hi,

I am starting work on some code for authentication using an ATECC608A

Sparkfun have a decent write up on this chip, if anyone is interested.
https://learn.sparkfun.com/tutorials/cr ... -guide/all

My question relates to how they create their arguments... they have a * before them like this

Code: Select all

uint8_t *publicKey
But the public key is actually 64 bytes in size, which cant fit in a uint8. The comments refer to it as an integer pointer...

Can i use this method in flowcode? I have never seen it used before...

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ATECC508A INTEGER POINTER *data ??

Post by Benj »

Hello,

Yes the easiest way in flowcode is to create a byte array. e.g. data[64]

The square brackets force the variable to be an array of values and this will act like the pointer value in Arduino.

Post Reply