diff --git a/ArdOSC.h b/ArdOSC.h old mode 100644 new mode 100755 diff --git a/Example/OSCArguments/OSCArguments.ino b/Example/OSCArguments/OSCArguments.ino old mode 100644 new mode 100755 index d0c3cc0..29d3767 --- a/Example/OSCArguments/OSCArguments.ino +++ b/Example/OSCArguments/OSCArguments.ino @@ -28,7 +28,7 @@ void setup(){ } void loop(){ - if(server.aviableCheck()>0){ + if(server.availableCheck()>0){ // Serial.println("alive! "); } } diff --git a/Example/OSCArguments/OSCArguments_p5/OSCArguments_p5.pde b/Example/OSCArguments/OSCArguments_p5/OSCArguments_p5.pde old mode 100644 new mode 100755 diff --git a/Example/SImpleRecieve/SImpleRecieve.ino b/Example/SImpleRecieve/SImpleRecieve.ino old mode 100644 new mode 100755 index 419a7e9..04bf250 --- a/Example/SImpleRecieve/SImpleRecieve.ino +++ b/Example/SImpleRecieve/SImpleRecieve.ino @@ -28,7 +28,7 @@ void setup(){ } void loop(){ - if(server.aviableCheck()>0){ + if(server.availableCheck()>0){ // Serial.println("alive! "); } diff --git a/Example/SImpleRecieve/SimpleRecieve_p5/SimpleRecieve_p5.pde b/Example/SImpleRecieve/SimpleRecieve_p5/SimpleRecieve_p5.pde old mode 100644 new mode 100755 diff --git a/Example/SImpleRecieveLEDToggle/SImpleRecieveLEDToggle.ino b/Example/SImpleRecieveLEDToggle/SImpleRecieveLEDToggle.ino old mode 100644 new mode 100755 index 506f1fa..e673955 --- a/Example/SImpleRecieveLEDToggle/SImpleRecieveLEDToggle.ino +++ b/Example/SImpleRecieveLEDToggle/SImpleRecieveLEDToggle.ino @@ -30,7 +30,7 @@ void setup(){ void loop(){ - if(server.aviableCheck()>0){ + if(server.availableCheck()>0){ // Serial.println("alive! "); } diff --git a/Example/SImpleRecieveLEDToggle/SImpleRecieveLEDToggle_p5/SImpleRecieveLEDToggle_p5.pde b/Example/SImpleRecieveLEDToggle/SImpleRecieveLEDToggle_p5/SImpleRecieveLEDToggle_p5.pde old mode 100644 new mode 100755 diff --git a/Example/loopback/LoopBackSender_P5/LoopBackSender_P5.pde b/Example/loopback/LoopBackSender_P5/LoopBackSender_P5.pde old mode 100644 new mode 100755 diff --git a/Example/loopback/loopback.ino b/Example/loopback/loopback.ino old mode 100644 new mode 100755 index a1bd7c3..af11ee3 --- a/Example/loopback/loopback.ino +++ b/Example/loopback/loopback.ino @@ -26,7 +26,7 @@ void setup(){ } void loop(){ - if(server.aviableCheck()>0){ + if(server.availableCheck()>0){ Serial.println("alive! "); } } diff --git a/Example/multicallback/multicallback.ino b/Example/multicallback/multicallback.ino old mode 100644 new mode 100755 index 3983832..4424ec5 --- a/Example/multicallback/multicallback.ino +++ b/Example/multicallback/multicallback.ino @@ -31,7 +31,7 @@ void setup(){ void loop(){ - int result = server.aviableCheck(); + int result = server.availableCheck(); if(result>0){ //callback after process diff --git a/Example/multicallback/multicallback_p5/multicallback_p5.pde b/Example/multicallback/multicallback_p5/multicallback_p5.pde old mode 100644 new mode 100755 diff --git a/Example/simplesend/SimpleSend_P5/SimpleSend_P5.pde b/Example/simplesend/SimpleSend_P5/SimpleSend_P5.pde old mode 100644 new mode 100755 diff --git a/Example/simplesend/simplesend.ino b/Example/simplesend/simplesend.ino old mode 100644 new mode 100755 diff --git a/Lisence.txt b/License.txt old mode 100644 new mode 100755 similarity index 100% rename from Lisence.txt rename to License.txt diff --git a/OSCArg.cpp b/OSCArg.cpp old mode 100644 new mode 100755 diff --git a/OSCClient.cpp b/OSCClient.cpp old mode 100644 new mode 100755 diff --git a/OSCDecoder.cpp b/OSCDecoder.cpp old mode 100644 new mode 100755 diff --git a/OSCEncoder.cpp b/OSCEncoder.cpp old mode 100644 new mode 100755 diff --git a/OSCMessage.cpp b/OSCMessage.cpp old mode 100644 new mode 100755 diff --git a/OSCServer.cpp b/OSCServer.cpp old mode 100644 new mode 100755 index b5bf724..73108dd --- a/OSCServer.cpp +++ b/OSCServer.cpp @@ -31,7 +31,7 @@ OSCServer::~OSCServer(void){ } -int16_t OSCServer::begin(uint16_t _recievePort){ +int16_t OSCServer::begin(uint16_t _receivePort){ if ( _sock != MAX_SOCK_NUM ) return -1; @@ -45,7 +45,7 @@ int16_t OSCServer::begin(uint16_t _recievePort){ if (_sock == MAX_SOCK_NUM) return -1; - _port=_recievePort; + _port=_receivePort; if( socket( _sock , SnMR::UDP , _port, 0 ) ) return -1; @@ -64,14 +64,14 @@ void OSCServer::stop(void){ } -int16_t OSCServer::aviableCheck(void){ +int16_t OSCServer::availableCheck(void){ if( !( W5100.readSnIR(_sock) && SnIR::RECV ) ) return -1; if( W5100.getRXReceivedSize(_sock) == 0 ) return -1; OSCMessage rcvMes; - if ( recvfrom( _sock , _rcvData , 1 , rcvMes._ip , &rcvMes._port ) > kMaxRecieveData ) return -1; + if ( recvfrom( _sock , _rcvData , 1 , rcvMes._ip , &rcvMes._port ) > kMaxReceiveData ) return -1; if( _decoder.decode( &rcvMes ,_rcvData ) < 0 ) return -1; diff --git a/OSCcommon/OSCArg.h b/OSCcommon/OSCArg.h old mode 100644 new mode 100755 diff --git a/OSCcommon/OSCClient.h b/OSCcommon/OSCClient.h old mode 100644 new mode 100755 diff --git a/OSCcommon/OSCDecoder.h b/OSCcommon/OSCDecoder.h old mode 100644 new mode 100755 diff --git a/OSCcommon/OSCEncoder.h b/OSCcommon/OSCEncoder.h old mode 100644 new mode 100755 diff --git a/OSCcommon/OSCMessage.h b/OSCcommon/OSCMessage.h old mode 100644 new mode 100755 diff --git a/OSCcommon/OSCServer.h b/OSCcommon/OSCServer.h old mode 100644 new mode 100755 index 8031f36..9af206c --- a/OSCcommon/OSCServer.h +++ b/OSCcommon/OSCServer.h @@ -25,7 +25,7 @@ class OSCServer{ int16_t _sock; uint16_t _port; - uint8_t _rcvData[kMaxRecieveData]; + uint8_t _rcvData[kMaxReceiveData]; OSCDecoder::OSCDecoder _decoder; @@ -41,11 +41,11 @@ class OSCServer{ OSCServer(void); ~OSCServer(void); - int16_t begin(uint16_t _recievePort); + int16_t begin(uint16_t _receivePort); void stop(void); - int16_t aviableCheck(void); + int16_t availableCheck(void); //_adr osc address string pointer - "/ard/aaa" diff --git a/OSCcommon/OSCcommon.h b/OSCcommon/OSCcommon.h old mode 100644 new mode 100755 index ef38bc9..1773087 --- a/OSCcommon/OSCcommon.h +++ b/OSCcommon/OSCcommon.h @@ -22,7 +22,7 @@ extern "C" { } #define kMaxAugument 16 -#define kMaxRecieveData 100 +#define kMaxReceiveData 100 #define kMaxOSCAdrCharactor 255 #define CULC_ALIGNMENT(x) (x+4)&0xfffc diff --git a/OSCcommon/Pattern.h b/OSCcommon/Pattern.h old mode 100644 new mode 100755 diff --git a/Pattern.cpp b/Pattern.cpp old mode 100644 new mode 100755 diff --git a/README b/README old mode 100644 new mode 100755 diff --git a/keywords.txt b/keywords.txt old mode 100644 new mode 100755 index a783a4e..f8bedf1 --- a/keywords.txt +++ b/keywords.txt @@ -20,7 +20,7 @@ send KEYWORD2 begin KEYWORD2 stop KEYWORD2 -aviableCheck KEYWORD2 +availableCheck KEYWORD2 addCallback KEYWORD2 flush KEYWORD2