Chang my esp32 pins to 13 to 33, and successfully connect to wifi thru looking at COM port, but the message from max still can't contol of the gpio, maybe my message is wrong? here's my max msp code part:
{
"boxes" : [ {
"box" : {
"maxclass" : "message",
"text" : "host 172.20.10.2",
"fontsize" : 13.0,
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-6",
"patching_rect" : [ 85.0, 79.0, 105.0, 23.0 ],
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "host 255.255.255.0",
"fontsize" : 13.0,
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-1",
"patching_rect" : [ 150.0, 130.0, 120.0, 23.0 ],
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "/gpio/D5 0",
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-5",
"patching_rect" : [ 473.0, 204.0, 63.0, 22.0 ],
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "/gpio 4 0",
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-4",
"patching_rect" : [ 394.0, 191.0, 55.0, 22.0 ],
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "toggle",
"parameter_enable" : 0,
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-23",
"patching_rect" : [ 282.0, 117.0, 24.0, 24.0 ],
"outlettype" : [ "int" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "/gpio13 1",
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-20",
"patching_rect" : [ 313.0, 156.0, 58.0, 22.0 ],
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "host 192.168.1.25",
"fontsize" : 13.0,
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-16",
"patching_rect" : [ 113.0, 104.0, 113.0, 23.0 ],
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "host 127.0.0.1",
"fontsize" : 13.0,
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-21",
"patching_rect" : [ 56.0, 52.0, 93.0, 23.0 ],
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "host localhost",
"fontsize" : 13.0,
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-18",
"patching_rect" : [ 28.0, 25.0, 90.0, 23.0 ],
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "0",
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-15",
"patching_rect" : [ 273.0, 20.0, 29.5, 22.0 ],
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "1",
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-13",
"patching_rect" : [ 221.0, 20.0, 29.5, 22.0 ],
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "prepend /gpio 27",
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-11",
"patching_rect" : [ 228.25, 62.0, 99.0, 22.0 ],
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "/gpio 27 1",
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-7",
"patching_rect" : [ 446.0, 162.0, 157.0, 22.0 ],
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "udpsend 172.20.10.2 9999",
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-3",
"patching_rect" : [ 216.0, 230.0, 151.0, 22.0 ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "/digitalWrite D5 0",
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-2",
"patching_rect" : [ 378.0, 62.0, 100.0, 22.0 ],
"outlettype" : [ "" ]
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-3", 0 ],
"order" : 1
}
}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-7", 1 ],
"order" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-11", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-11", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-3", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-3", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-3", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-3", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-23", 0 ],
"destination" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-21", 0 ],
"destination" : [ "obj-3", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-20", 0 ],
"destination" : [ "obj-7", 1 ],
"order" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-20", 0 ],
"destination" : [ "obj-3", 0 ],
"order" : 1
}
}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-3", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-18", 0 ],
"destination" : [ "obj-3", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-16", 0 ],
"destination" : [ "obj-3", 0 ]
}
}
],
"appversion" : {
"major" : 8,
"minor" : 5,
"revision" : 3,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box"
}