Page 1 of 1

ATECC508A INTEGER POINTER *data ??

Posted: Wed Jun 17, 2020 2:10 pm
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...

Re: ATECC508A INTEGER POINTER *data ??

Posted: Wed Jun 17, 2020 2:13 pm
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.