Sending Open Sound Control (UDP) over WIFI with GIGA R1

hello,

i buyed the R1 to build a wireless musical controller.

which library i have to use for WIFI on R1 and to send Data over UDP?

are there examples for this?

(i'm a bit confused with wifi-librarys. i have some experiences with building MIDI-Controllers but i'm complet new with using WIFI on Arduino.)

πxl

Just include WiFi.h, no need to install any particular library yourself:

#include <WiFi.h>

The API of all WiFi libraries is (almost) the same, so any existing tutorial or example will likely work. For UDP see:

thank you alranel,

sounds good - i try it out in the evening or tomorrow

πxl

For me unfortunately the wififirmware updater crashes right after starting to attempt an update

There is an Arduino Library for Open Sound Control but the WiFi/ESP examples fail to compile. By the way, the example names include the name ESP8266 but compile for ESP8266, ESP32, and with a few changes, giga_r1_wifi.

One fix is to remove the global variable error because it conflicts with an mbed public function.

I am away from my regular computer so cannot test any of the changes so far.

for me it works fine to send over UDP. also the OSC-Library works.

now i have another problem - may be offtopic but connectet with the other:

it works fine if i use my local WIFI which i use for internet. but for use as controller its (because of timing) necessary to use a local net provided from my mac-book (using "create network"). this works fine with TouchOSC from my iPads but the GIGA R1 doesnt connect.

this network has no password and i leave the corresponding variable blank:

char ssid[] = "test";
char pass[] = "";
...
...
status = WiFi.begin(ssid, pass);

any ideas?

Wild guess: Remove the second parameter, if not used.

status = WiFi.begin(ssid);

unfortunatedly this dont work with the giga-wifi-lib and causes an error.
i have also read this possibility in the tutorial but this is for the older wifi-libs ...