This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int sensorPin = A0; | |
const float baselineTemp = 25.0; | |
void setup(){ | |
Serial.begin(9600); // open a serial port | |
for(int pinNumber = 2; pinNumber<5; pinNumber++){ | |
pinMode(pinNumber,OUTPUT); | |
digitalWrite(pinNumber, LOW); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; | |
/** | |
* License : Apache License 2.0 | |
* | |
* @author Michael Bornholdt Nielsen mni@jarry.dk | |
* | |
*/ | |
public class PrettyPrintedJson { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Map; | |
import javax.ws.rs.client.Client; | |
import javax.ws.rs.client.ClientBuilder; | |
import javax.ws.rs.client.ClientRequestContext; | |
import javax.ws.rs.client.ClientRequestFilter; | |
import javax.ws.rs.client.Entity; | |
import javax.ws.rs.client.WebTarget; |
NewerOlder