{"action":"opened","issue":{"url":"https://api.github.com/repos/sparkfun/Photon_Weather_Shield/issues/13","repository_url":"https://api.github.com/repos/sparkfun/Photon_Weather_Shield","labels_url":"https://api.github.com/repos/sparkfun/Photon_Weather_Shield/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/sparkfun/Photon_Weather_Shield/issues/13/comments","events_url":"https://api.github.com/repos/sparkfun/Photon_Weather_Shield/issues/13/events","html_url":"https://github.com/sparkfun/Photon_Weather_Shield/issues/13","id":138083616,"number":13,"title":"Tutorial Mismatch","user":{"login":"bjohnsonmn","id":17609498,"avatar_url":"https://avatars.githubusercontent.com/u/17609498?v=3","gravatar_id":"","url":"https://api.github.com/users/bjohnsonmn","html_url":"https://github.com/bjohnsonmn","followers_url":"https://api.github.com/users/bjohnsonmn/followers","following_url":"https://api.github.com/users/bjohnsonmn/following{/other_user}","gists_url":"https://api.github.com/users/bjohnsonmn/gists{/gist_id}","starred_url":"https://api.github.com/users/bjohnsonmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjohnsonmn/subscriptions","organizations_url":"https://api.github.com/users/bjohnsonmn/orgs","repos_url":"https://api.github.com/users/bjohnsonmn/repos","events_url":"https://api.github.com/users/bjohnsonmn/events{/privacy}","received_events_url":"https://api.github.com/users/bjohnsonmn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-03T06:01:19Z","updated_at":"2016-03-03T06:01:19Z","closed_at":null,"body":"When (As a Noob), I follow the instruction on the SparkFun website, there is a mismatch in what I expect to see.\r\n\r\nSparkFun's Tutorial indicates I should find code like this:\r\n\r\n/////////////////////////PHANT STUFF///////////////\r\nconst char server[] = \"data.sparkfun.com\";\r\nconst char publicKey[] = \"yourPublicKey\";\r\nconst char privateKey[] = \"yourPrivateKey\";\r\nPhant phant(server, publicKey, privateKey);\r\n//////////////////////////////////////\r\n\r\nI am aware that the placeholder text is to be replaced.\r\n\r\nI made the replacements in the section starting on line 25 (26, 27,28).  This is the result I get when I run a compile in the online IDE:\r\n\r\nSparkFun_Photon_Weather_Shield_Library/SparkFun_Photon_Weather_Shield_Library.cpp: In member function 'float Weather::readPressure()':\r\nSparkFun_Photon_Weather_Shield_Library/SparkFun_Photon_Weather_Shield_Library.cpp:320:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]\r\n  if(IIC_Read(STATUS) & (1<<2) == 0) toggleOneShot(); //Toggle the OST bit causing the sensor to immediately take another reading\r\n                      ^\r\nSparkFun_Photon_Weather_Shield_Library/SparkFun_Photon_Weather_Shield_Library.cpp:324:25: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]\r\n  while(IIC_Read(STATUS) & (1<<2) == 0)\r\n                         ^\r\nSparkFun_Photon_Weather_Shield_Library/SparkFun_Photon_Weather_Shield_Library.cpp: In member function 'float Weather::readBaroTemp()':\r\nSparkFun_Photon_Weather_Shield_Library/SparkFun_Photon_Weather_Shield_Library.cpp:360:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]\r\n  if(IIC_Read(STATUS) & (1<<1) == 0) toggleOneShot(); //Toggle the OST bit causing the sensor to immediately take another reading\r\n                      ^\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::Phant(String, String, String)':\r\nSparkFunPhant/SparkFunPhant.cpp:25: multiple definition of `Phant::Phant(String, String, String)'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:30: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::Phant(String, String, String)':\r\nSparkFunPhant/SparkFunPhant.cpp:25: multiple definition of `Phant::Phant(String, String, String)'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:30: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::add(String, String)':\r\nSparkFunPhant/SparkFunPhant.cpp:32: multiple definition of `Phant::add(String, String)'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:37: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::add(String, char)':\r\nSparkFunPhant/SparkFunPhant.cpp:39: multiple definition of `Phant::add(String, char)'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:44: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::add(String, int)':\r\nSparkFunPhant/SparkFunPhant.cpp:46: multiple definition of `Phant::add(String, int)'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:51: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::add(String, unsigned char)':\r\nSparkFunPhant/SparkFunPhant.cpp:53: multiple definition of `Phant::add(String, unsigned char)'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:58: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::add(String, long)':\r\nSparkFunPhant/SparkFunPhant.cpp:60: multiple definition of `Phant::add(String, long)'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:65: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::add(String, unsigned int)':\r\nSparkFunPhant/SparkFunPhant.cpp:66: multiple definition of `Phant::add(String, unsigned int)'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:71: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::add(String, unsigned long)':\r\nSparkFunPhant/SparkFunPhant.cpp:72: multiple definition of `Phant::add(String, unsigned long)'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:77: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::add(String, double, unsigned int)':\r\nSparkFunPhant/SparkFunPhant.cpp:78: multiple definition of `Phant::add(String, double, unsigned int)'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:83: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::add(String, float, unsigned int)':\r\nSparkFunPhant/SparkFunPhant.cpp:85: multiple definition of `Phant::add(String, float, unsigned int)'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:90: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::queryString()':\r\nSparkFunPhant/SparkFunPhant.cpp:92: multiple definition of `Phant::queryString()'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:97: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::url()':\r\nSparkFunPhant/SparkFunPhant.cpp:96: multiple definition of `Phant::url()'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:101: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::get()':\r\nSparkFunPhant/SparkFunPhant.cpp:107: multiple definition of `Phant::get()'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:112: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::post()':\r\nSparkFunPhant/SparkFunPhant.cpp:117: multiple definition of `Phant::post()'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:122: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::clear()':\r\nSparkFunPhant/SparkFunPhant.cpp:133: multiple definition of `Phant::clear()'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:138: first defined here\r\n../../../build/target/user/platform-6/libuser.a(SparkFunPhant.o): In function `Phant::particlePost()':\r\nSparkFunPhant/SparkFunPhant.cpp:144: multiple definition of `Phant::particlePost()'\r\n../../../build/target/user/platform-6/libuser.a(weatheronlinesimple1.o):weatheronlinesimple1.cpp:149: first defined here\r\ncollect2: error: ld returned 1 exit status\r\nmake: *** [69df6f089b6a2ca2c5f74458a1bca8b479eef178bb9fdd69c4e20aa2cca0.elf] Error 1\r\nError: Could not compile. Please review your code."}}