problems with Phant Library example

Everything pertaining to the data.sparkfun.com service, the phant project which powers it, and user projects which talk to the service.

Moderators: phalanx, toddtreece, Brennen@SparkFun

Post Reply
jonathanemptage
Posts: 1
Joined: Fri Nov 13, 2015 5:59 am

problems with Phant Library example

Post by jonathanemptage » Mon Nov 16, 2015 3:41 am

I'm using a Esp8622 wifi shield on the arduino uno I have been going through the Examples in the AT library and they all work apart from the Phant Library demo the data stream just wont up date and It's saying forbidden missing private the output looks like this

0

Connected.
Posting to Phant!


+IPD,0,396:HTTP/1.1 403 Forbidden
Access-Control-Allow-Oriri, 13 Nov 2015 16:38:49 GMT
Connection: close
Transfer-Encoding: chunked
Set-Cookie: SERVERID=; Expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/

21
0 forbidden: missing private key

0


please help

Jon

Miskatonic
Posts: 4
Joined: Wed Feb 18, 2015 8:33 pm

Re: problems with Phant Library example

Post by Miskatonic » Thu Dec 24, 2015 9:00 am

My first guess is the private key hasn't been filled in in the example code. look for the line above setup that says:
const char privateKey[] = "P4eKwGGek5tJVz9Ar84n";
Replace everything within the quotation marks with your private key.
Hope this helps

Post Reply