OSC bridge in AP mode
Default gw ip 192.168.4.1
This commit is contained in:
parent
e99e8e3211
commit
a3a83ea6f9
@ -8,14 +8,15 @@
|
||||
#include <OSCBundle.h>
|
||||
#include <OSCData.h>
|
||||
|
||||
char ssid[] = "FaRgO2G4";
|
||||
char pass[] = "Johansson85";
|
||||
char ssid[] = "ROBOT";
|
||||
char pass[] = "myrobotisawesome";
|
||||
|
||||
WiFiUDP Udp;
|
||||
|
||||
// remote IP (not needed for receive)
|
||||
// Will be updated once the first package is received
|
||||
IPAddress outIp(192,168,1,10);
|
||||
// Gateway IP normally is 192.168.4.1
|
||||
IPAddress outIp(192,168,4,2);
|
||||
|
||||
const unsigned int outPort = 9999;
|
||||
const unsigned int localPort = 8888;
|
||||
@ -46,12 +47,13 @@ uint8_t buffer[bufferSize];
|
||||
Packet* pPacket = (Packet*)buffer;
|
||||
|
||||
void setup() {
|
||||
WiFi.softAP(ssid, pass);
|
||||
IPAddress apip = WiFi.softAPIP();
|
||||
pinMode(LED_BUILTIN, OUTPUT);
|
||||
Serial.begin(57600);
|
||||
Serial.println();
|
||||
Serial.print("Connecting to ");
|
||||
Serial.println(ssid);
|
||||
WiFi.begin(ssid, pass);
|
||||
Serial.print("AP IP: ");
|
||||
Serial.println(apip);
|
||||
Udp.begin(localPort);
|
||||
|
||||
pPacket->MagicWordLow = 0x0DED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user