void b_TreatCommand_WiFi(String CommandString1){ int Index1 = CommandString1.indexOf(":"); char CommandType0 = CommandString1.charAt(0); char CommandType1 = CommandString1.charAt(1); String CommandValue1 = CommandString1.substring(Index1+1); switch(CommandType0){ case 'P': // Port Control { if(CommandType1 == '4'){ if(CommandValue1.equals("0")) h_SwitchRelay('F'); if(CommandValue1.equals("1")) h..
void h_TreatSerial(){ if(!RxString_Serial.startsWith("VI")) return; int Index1 = RxString_Serial.indexOf("/"); if(Index1 = Index2) return; String VICName = RxString_Serial.substring(0, Index1); char CommandType0 = RxString_Serial.charAt(Index1+1); char CommandType1 = RxString_Serial.charAt(Index1+2); String ValueString = RxString..
void h_TreatSerialCommand(){ if(!RxString_Serial.startsWith("CD")) return; #if(USER_SERIAL == 901) Serial.println(""); Serial.println(RxString_Serial); #endif int Index1 = RxString_Serial.indexOf("/"); if(Index1 = Index2) return; String DeviceName = RxString_Serial.substring(0, Index1); char CommandType0 = RxString_Serial.charAt(..
bool h_TreatLoRaCommand(){ if(!(RxString_LoRa.startsWith("LR"))){ // RxString_LoRa : "CD1.01/P4:0" IsCommand2Subdevice = true; Command2Subdevice = RxString_LoRa; return false; } int Index1 = RxString_LoRa.indexOf('/'); if(Index1 < 1) return false; int Index2 = RxString_LoRa.indexOf(':'); if(Index2 < Index1) return false; char DataType0 = RxString_LoRa.charAt(Index1+1); char DataType1 = RxString_..
void b_PostprocessWebCommand(char CommandType1, char CommandType2, String CommandString){ switch(CommandType1){ case 'P': // Port control of WiFi device { int PortValue = 0; int PortNo = 0; PortValue = (int) CommandString.toInt(); if(CommandType2 == 'R'){ // Port control for RELAY PortNo = PIN_RELAY; if(PortValue == 1) IsPowerON = true; if(PortValue == 0) IsPowerON = false; }else if(CommandType2..
보호되어 있는 글입니다.
Sample Source Code void b_Send2IFTTT(String EventValue){ Serial.print("Connecting to "); Serial.println(IFTTTAddress); WiFiClient client; const int httpPort = 80; if(!client.connect(IFTTTAddress, httpPort)){ Serial.println("Connection to IFTTT Failed"); return; } //String urlString = String(IFTTTAddress) + "/trigger/"; String urlString = "/trigger/"; urlString += EventValue; urlString += "/with/..
보호되어 있는 글입니다.
보호되어 있는 글입니다.
보호되어 있는 글입니다.
- Total
- Today
- Yesterday
- Innovations
- 절연형
- 전압
- Innovations&Hurdles
- 빌리언트
- ServantClock
- image
- 오블완
- 혁신
- Video
- 치매
- bilient
- 치매방지
- 티스토리챌린지
- 전류
- 전압전류모니터링
- 배프
- Hurdles
- badp
- 아두이노
- 허들
- 심심풀이
- Decorator
- BSC
- Innovation&Hurdles
- 혁신과허들
- 둎
- arduino
- DYOV
- 심심풀이치매방지기
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |