Hello,
I finally got my HTTPClient_Connect to work. I have a giant thread on getting that to work Here, however, it's likely not related to this problem.
I am now getting errors back from the parseJson() function. I have confirmed that my gateway API is working using postman.
The buffer being passed into the function does appear to be the AWS Certificate used by my "thing". The length is 1192, which is less than the PROV_BUFFER_SIZE of my program.
Initially, I was parsing the JSON message with 5 tokens which was the default, but I had to increase this to 22. Now, it will pass the initial if(jsmn_parse()) line.
However, I cannot find a way to pass the second test, which is to succeed findToken() . When I dive into this function, the function fails because none of the Tokens are "objects". They are all of the type "Primative".
I've read about primatives, but I don't understand why all of the characters are being read as primatives. They are not NULL or BOOL, so I don't understand why the characters are being interpreted this way. Of course, I just read a little bit about them, so my understanding is far from comprehensive.
Now, I noticed that the tokens are going from Here->There, i.e. 0 to 10, but they all have a size of 0. I would expected 0->10 to have a size of 10. Something is wrong here, and it is preventing me from parsing my 'thing' AWS certificate.
Would someone mind lending a hand?
Thank you