Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // lipon arxikopoio kai orizw tn metavliti mou stn arxi... fenete pantou
- uint16_t lux = 0;
- //meta mesa stn main kalo tin sinartisi
- Lux();
- // kai meta edw pera paw kai ftiaxnw to megalo string xrisimopoiontas to lux to mikro pou exei parei timi mesa stn Lux me kefaleo... kala den to exw kanei?
- gprsdata = "st1*1234*A00*" + mystamp + String(Mtemp,1) + "*"+ String(humtemp(1)) + "*"+ String(presstemp(1),2) + "*"+ String(lux) + "*" + String(vspeed) + "*" + String(sV,1);// + "*" + String(com);
- void Lux() {
- lightMeter.begin(BH1750::CONTINUOUS_HIGH_RES_MODE);
- delay(120);
- lux = lightMeter.readLightLevel();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement