GithubHelp home page GithubHelp logo

irkit / device Goto Github PK

View Code? Open in Web Editor NEW
113.0 113.0 60.0 57.09 MB

Infrared-WiFi-HTTP bidirectional proxy device

Makefile 0.49% Perl 1.06% Shell 0.05% C 4.81% C++ 11.90% Arduino 2.36% Ruby 0.37% Eagle 78.96%

device's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

device's Issues

Errors trying to compile firmware

When trying to compile the firmware via the instructions in the readme I get the following:

Arduino: 1.6.1 (Mac OS X), Board: "Arduino Leonardo"

from GSwifi.cpp:25:
pgmStrToRAM.h:22:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define P(s)       pgmStrToRAM(PSTR(s),0)
                                ^
GSwifi.cpp:779:31: note: in expansion of macro 'P'
                  strncmp(buf, P("Serial2WiFi APP"), 15) == 0) {
                               ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from GSwifi.cpp:35:0:
GSwifi.cpp: In member function 'void GSwifi::parseCmdResponse(char*)':
pgmStrToRAM.h:22:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define P(s)       pgmStrToRAM(PSTR(s),0)
                                ^
log.h:45:43: note: in definition of macro 'GSLOG_PRINT'
 # define GSLOG_PRINT(a)      Serial.print(a)
                                           ^
GSwifi.cpp:795:17: note: in expansion of macro 'P'
     GSLOG_PRINT(P("c< ")); GSLOG_PRINTLN(buf);
                 ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:22:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define P(s)       pgmStrToRAM(PSTR(s),0)
                                ^
GSwifi.cpp:809:26: note: in expansion of macro 'P'
         if (strncmp(buf, P("CONNECT "), 8) == 0 && buf[9] == 0) {
                          ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:22:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define P(s)       pgmStrToRAM(PSTR(s),0)
                                ^
GSwifi.cpp:832:52: note: in expansion of macro 'P'
         if (gs_response_lines_ == 0 && strstr(buf, P("SubNet"))) {
                                                    ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:22:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define P(s)       pgmStrToRAM(PSTR(s),0)
                                ^
GSwifi.cpp:840:26: note: in expansion of macro 'P'
         if (strncmp(buf, P("IP:"), 3) == 0) {
                          ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from GSwifi.cpp:35:0:
GSwifi.cpp: In member function 'void GSwifi::command(const char*, GSwifi::GSCOMMANDMODE, uint8_t)':
pgmStrToRAM.h:22:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define P(s)       pgmStrToRAM(PSTR(s),0)
                                ^
log.h:45:43: note: in definition of macro 'GSLOG_PRINT'
 # define GSLOG_PRINT(a)      Serial.print(a)
                                           ^
GSwifi.cpp:903:17: note: in expansion of macro 'P'
     GSLOG_PRINT(P("c> "));
                 ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from GSwifi.cpp:35:0:
GSwifi.cpp: In member function 'void GSwifi::escape(const char*, uint8_t)':
pgmStrToRAM.h:22:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define P(s)       pgmStrToRAM(PSTR(s),0)
                                ^
log.h:45:43: note: in definition of macro 'GSLOG_PRINT'
 # define GSLOG_PRINT(a)      Serial.print(a)
                                           ^
GSwifi.cpp:920:17: note: in expansion of macro 'P'
     GSLOG_PRINT(P("e> "));
                 ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
GSwifi.cpp: In member function 'int8_t GSwifi::join(GSSECURITY, const char*, const char*, int, char*)':
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:996:13: note: in expansion of macro 'PB'
     command(PB("AT+WM=0",1), GSCOMMANDMODE_NORMAL);
             ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:999:11: note: in expansion of macro 'PB'
     cmd = PB("AT+NDHCP=1,%",1);
           ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1007:17: note: in expansion of macro 'PB'
         command(PB("AT+WSEC=0",1), GSCOMMANDMODE_NORMAL);
                 ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1009:15: note: in expansion of macro 'PB'
         cmd = PB("AT+WAUTH=%",1);
               ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1014:19: note: in expansion of macro 'PB'
             cmd = PB("AT+WWEP1=%",1);
                   ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1018:15: note: in expansion of macro 'PB'
         cmd = PB("AT+WA=%",1);
               ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1029:17: note: in expansion of macro 'PB'
         command(PB("AT+WAUTH=0",1), GSCOMMANDMODE_NORMAL);
                 ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1031:15: note: in expansion of macro 'PB'
         cmd = PB("AT+WWPA=%",1);
               ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1035:15: note: in expansion of macro 'PB'
         cmd = PB("AT+WA=%",1);
               ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1040:17: note: in expansion of macro 'PB'
         command(PB("AT+WAUTH=0",1), GSCOMMANDMODE_NORMAL);
                 ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1042:15: note: in expansion of macro 'PB'
         cmd = PB("AT+WPAPSK=%,%",1);
               ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1053:15: note: in expansion of macro 'PB'
         cmd = PB("AT+WA=%",1);
               ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
GSwifi.cpp: In member function 'int GSwifi::listen()':
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1077:13: note: in expansion of macro 'PB'
     command(PB("AT+NSTCP=80",1), GSCOMMANDMODE_CONNECT);
             ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
GSwifi.cpp: In member function 'int8_t GSwifi::startLimitedAP()':
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1093:13: note: in expansion of macro 'PB'
     command(PB("AT+NSET=192.168.1.1,255.255.255.0,192.168.1.1",1), GSCOMMANDMODE_NORMAL);
             ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1096:11: note: in expansion of macro 'PB'
     cmd = PB("AT+WPAPSK=IRKitXXXX,XXXXXXXXXX",1);
           ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1102:13: note: in expansion of macro 'PB'
     command(PB("AT+WSEC=8",1),           GSCOMMANDMODE_NORMAL);
             ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1103:13: note: in expansion of macro 'PB'
     command(PB("AT+WAUTH=0",1),          GSCOMMANDMODE_NORMAL);
             ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1106:13: note: in expansion of macro 'PB'
     command(PB("AT+WM=2",1),             GSCOMMANDMODE_NORMAL);
             ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1108:13: note: in expansion of macro 'PB'
     command(PB("AT+DHCPSRVR=1",1),       GSCOMMANDMODE_NORMAL);
             ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1111:11: note: in expansion of macro 'PB'
     cmd = PB("AT+WA=%",1);
           ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
GSwifi.cpp: In member function 'int GSwifi::disconnect()':
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1128:13: note: in expansion of macro 'PB'
     command(PB("AT+NCLOSEALL",1),  GSCOMMANDMODE_NORMAL);
             ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1129:13: note: in expansion of macro 'PB'
     command(PB("AT+WD",1),         GSCOMMANDMODE_NORMAL);
             ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1130:13: note: in expansion of macro 'PB'
     command(PB("AT+DHCPSRVR=0",1), GSCOMMANDMODE_NORMAL);
             ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
GSwifi.cpp: In member function 'int8_t GSwifi::setRegDomain(char)':
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1183:17: note: in expansion of macro 'PB'
     char *cmd = PB("AT+WREGDOMAIN=%",1);
                 ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
GSwifi.cpp: In member function 'int8_t GSwifi::request(GSwifi::GSMETHOD, const char*, const char*, uint16_t, GSwifi::GSResponseHandler, uint8_t, uint8_t)':
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1198:11: note: in expansion of macro 'PB'
     cmd = PB("AT+DNSLOOKUP=" DOMAIN,1);
           ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1214:11: note: in expansion of macro 'PB'
     cmd = PB("AT+NCTCP=",1);
           ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1240:11: note: in expansion of macro 'PB'
     cmd = PB("AT+SSLOPEN=%,cacert",1);
           ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1278:11: note: in expansion of macro 'PB'
     cmd = PB("S0",1);
           ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:22:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define P(s)       pgmStrToRAM(PSTR(s),0)
                                ^
GSwifi.cpp:1283:24: note: in expansion of macro 'P'
         serial_->print(P("POST "));
                        ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:22:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define P(s)       pgmStrToRAM(PSTR(s),0)
                                ^
GSwifi.cpp:1286:24: note: in expansion of macro 'P'
         serial_->print(P("GET "));
                        ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:22:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define P(s)       pgmStrToRAM(PSTR(s),0)
                                ^
GSwifi.cpp:1289:20: note: in expansion of macro 'P'
     serial_->print(P(" HTTP/1.1\r\nUser-Agent: IRKit/"));
                    ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
pgmStrToRAM.h:22:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define P(s)       pgmStrToRAM(PSTR(s),0)
                                ^
GSwifi.cpp:1295:24: note: in expansion of macro 'P'
         serial_->print(P("Content-Length: "));
                        ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from GSwifi.cpp:25:
GSwifi.cpp: In member function 'char* GSwifi::hostname()':
pgmStrToRAM.h:23:32: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
 #define PB(s,i)    pgmStrToRAM(PSTR(s),i)
                                ^
GSwifi.cpp:1334:17: note: in expansion of macro 'PB'
     char *ret = PB("IRKit%%%%", 0);
                 ^
In file included from GSwifi.cpp:26:0:
pgmStrToRAM.h:29:7: error:   initializing argument 1 of 'char* pgmStrToRAM(char*, uint8_t)' [-fpermissive]
 char *pgmStrToRAM(PROGMEM char *theString, uint8_t index);
       ^
Error compiling.
\

Online order

Hi, can IRKit be bought online these days? It's not available on Switch-Science anymore it seems.

Ordering in the US

Is it possible to order one of these in the US? I tried using amazon-japan but it said it couldn't ship to my address in the US

Wired devices

Despite joining my wifi, it doesn't appear any of my wired devices can access the local API - is this intentional or am I doing something wrong? These wired devices can get a ping response, but not from the http server.

All of my devices that are connected to the wifi network can get a response.

Can the power LED be optional?

Is it possible to update the firmware to allow us to disable the status LED? It's very bright at night. Ideally, the LED would be on during power-up and wifi-connection, but then turn off once connected successfully.

Consecutive HTTP requests against IRKit

When sending HTTP requests against IRKit, if a client sends HTTP requests consecutively without an interval, IRKit resets itself after 20-30 requests. Please sleep for 1 second between each request if your client is going to send many requests. If it's a few requests, IRKit can handle it without an interval.

Also, make sure your HTTP client is not sending multiple HTTP requests simultaneously, IRKit can only handle one HTTP request at a time.

First HTTP request hangs device

It seems that both of my IRKit units will hang after receiving their first HTTP request (like GET /messages). Looking at the serial monitor in the Arduino IDE, the request is acknowledged but never answered. The unit seems to get a little warm during this time, suggesting some kind of spinning behavior.

Firmware version is the latest (3.0)

IRKit's security issue in v1, v2 firmware

Since IRKit is open source, and it's APIs are officially public, many people have tried to use IRKit and send IR signals in their own preferred way.

Ex: send IR signals from terminal using curl commands, or sending IR signals from a custom designed web site.

Whereas the feature to enable sending IR signals from a web site, can be abused to send IR signals when IRKit owners don't intend to.
When following conditions are all met, an attacker can send arbitrary IR signals from IRKit.

  • IRKit's owner is using a computer connected to the same home network with IRKit
  • IRKit's owner opens a web site, created by the attacker
  • IRKit is setup successfully
  • Attacker can guess IRKit's internal IP address in the home network

The person who discovered this problem is me, and I haven't heard any real attacks utilizing this problem.

IRKits having this problem are sold before Aug, 2015. IRKits sold after that already have updated firmware written. Check IRKit's version using the official iPhone and Android app, and update IRKit's firmware if the version was below v3.0.0.gxxxxx. Please update if the version was something like v1.x.x.gxxxxx or v2.x.x.gxxxxx.

IRKit-firmware-version<script async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8"></script>

To update IRKit's firmware, use IRKit Updater, an Mac, Windows compatible application solely to update IRKit's firmware (IRKit's internal software).

IRKit Updater works on following environments.

  • Mac OSX 10.8 and later
  • Windows 7 and later

Please go through following steps to use IRKit Updater.

  1. Download latest IRKit Updater
  2. Extract zip file
  3. Connect IRKit to computer via USB cable
  4. Install IRKit's driver (IRKit.inf is located inside the extracted directory) if you're on Windows environment
  5. Run IRKit Updater
    If you're using Mac, double click IRKit Updater.app, if you're using Windows, double click IRKit Updater.exe
  6. Click on Update button
    スクリーンショット 2015-09-02 15.54.33<script async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8"></script>
  7. You'll see detailed progress in Log area. If you see following screen, update is successfully finished.
    スクリーンショット 2015-09-02 16.01.47<script async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8"></script>
  8. If something went wrong, please follow the instructions shown in the app and retry, or click on the Copy button on the right-top of the Log area, and send an email to [email protected]

This firmware update is a non compatible change in IRKit's Device HTTP API (IRKit's own HTTP server's API). Apps or scripts using Device HTTP API might not work after the update.

Following IRKit compatible apps are already updated. Please update to the latest version from AppStore or Google Play Store.

  • Official iPhone app IRKit Simple Remote
  • Official Android app IRKit Simple Remote
  • iPhone app NK Remote
  • iPhone app Geo IR
  • iPhone app Geo command

If you wrote your own app or script which utilizes IRKit Device HTTP API, change your code in the following way.

  • If you are NOT using a browser to send requests to IRKit, add a X-Requested-With: curl custom header to your request.

  • If you are using a browser to send requests to IRKit, some endpoints have been disabled due to this update.
    POST /messages API is only available, if you add the IRKit's Wi-Fi access point password into IR signal JSON representation, and if you don't append the X-Requested-With custom header.

    {"format":"raw","freq":38,"data":[18031,8755,...snip...4400,1190],"password":"XXXXXXXXXX"}
    

    If you already have JSON representation of IR signals already learned, you can send it as written above. To learn IR signals, use IRKit Internet HTTP API

If you have a public repository of IRKit related code on github, I might occasionally visit and send a pull request.

ファームウェアを書き換えられなくなってしまった

ファームウェアを何度か書き換えていたのですが、書き換えられなくなってしまいました。
inoでUSBからファームウェアを書き込むのではなく、ISPからarduino leonardoのブートローダーを書き込むと良いのでしょうか?
できれば助けていただけると嬉しいです・・

やったこと

IRKitHTTPHandler.cppのon_get_messages_response関数の頭に、

printf("hogeeeee");

と1行足したファームウェアを書き込んだ

sho@sho-mba13% ino upload -m irkit
Guessing serial port ... /dev/tty.usbmodem1421

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9587
avrdude: reading input file ".build/irkit/firmware.hex"
avrdude: writing flash (28768 bytes):

Writing | ################################################## | 100% 2.14s



avrdude: 28768 bytes of flash written
avrdude: verifying flash memory against .build/irkit/firmware.hex:
avrdude: load data flash data from input file .build/irkit/firmware.hex:
avrdude: input file .build/irkit/firmware.hex contains 28768 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.22s



avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x7000
         0x69 != 0x55
avrdude: verification error; content mismatch

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

一見書き込めているが、verifyエラーがでている。
2回目以降はボードが見つからず書き込めない。また、フルカラーLEDも点灯しない。

sho@sho-mba13% ino upload -m irkit
Guessing serial port ... /dev/tty.usbmodem1421
Couldn’t find a Leonardo on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.

firmwareがコンパイルエラーになる

LEDを消すことを行おうとして、ファームウェアの書き換えを行うとv3.0.0をダウンロードしました。
初めに何も変更せずにコンパイルを実行しようとしたところ以下のエラーが発生しました。
初心者なので初歩的なところの問題だと思うのですが、どうすればいいでしょうか?

OS:Mac OSX 10.12.13
arudino IDE: 1.0.6

This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
Arduino: 1.0.6 (Mac OS X), Board: "Arduino Uno"
timer.c: In function 'timer_init':
timer.c:45: error: 'TCCR4B' undeclared (first use in this function)
timer.c:45: error: (Each undeclared identifier is reported only once
timer.c:45: error: for each function it appears in.)
timer.c:46: error: 'TCCR4A' undeclared (first use in this function)
timer.c:47: error: 'TCCR4C' undeclared (first use in this function)
timer.c:48: error: 'TCCR4D' undeclared (first use in this function)
timer.c:49: error: 'TCCR4E' undeclared (first use in this function)
timer.c:50: error: 'CS43' undeclared (first use in this function)
timer.c:50: error: 'PSR4' undeclared (first use in this function)
timer.c:53: error: 'OCR4C' undeclared (first use in this function)
timer.c: In function 'timer_start':
timer.c:59: error: 'TIFR4' undeclared (first use in this function)
timer.c:59: error: 'TOV4' undeclared (first use in this function)
timer.c:60: error: 'TCNT4' undeclared (first use in this function)
timer.c:61: error: 'TIMSK4' undeclared (first use in this function)
timer.c:61: error: 'TOIE4' undeclared (first use in this function)
timer.c: In function 'timer_stop':
timer.c:65: error: 'TIMSK4' undeclared (first use in this function)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.