-
Notifications
You must be signed in to change notification settings - Fork 5
/
auto-generated-workspace.html
687 lines (595 loc) · 26.6 KB
/
auto-generated-workspace.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Workspace / NodeMCU</title>
<!-- ChiliPeppr is based on bootstrap CSS. -->
<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Customized version of require.js for ChiliPeppr. Please see require.js docs for how
ChiliPeppr's dependency system works as it's based on require.js. -->
<script type='text/javascript' src="//i2dcui.appspot.com/js/require.js"></script>
<style type='text/css'>
/* Workspace CSS */
.com-chilipeppr-ws-hdr {
padding:10px 15px;
}
.nodemcu-commands {
line-height: 24px;
}
#com-chilipeppr-workspace-nodemcu .nodemcu-install {
padding:0;
}
#com-chilipeppr-workspace-nodemcu .col-nopadrt {
padding-right:0;
}
#com-chilipeppr-workspace-nodemcu .col-nopadleft {
padding-left:0;
}
#com-chilipeppr-widget-nodemcusamples .panel-body {
max-height:250px;
overflow:auto;
}
#com-chilipeppr-widget-nodemcusamples .tab-pane {
/*overflow:auto; */
}
.billboard-content {
padding: 6px 20px;
}
.billboard-title {
margin-bottom:6px;
}
.billboard-url {
/* font-size: 9px; */
padding-top:0px;
margin-bottom:6px;
font-size:12px;
}
.billboard-img {
border:0px solid red;
border-radius: 5px;
position: relative;
width:100%;
height:160px;
background-position: center;
background-size: cover;
}
.billboard-imgcontain {
border:0px solid red;
position: relative;
}
.billboard-stats {
position: absolute;
top: 4px;
left: 10px;
}
.billboard-desc {
/* font-size:11px; */
}
.billboard-detail-title {
font-weight: bold;
}
.billboard-stats2 {
position: absolute;
bottom: 0px;
left: 0px;
right: 0px;
padding: 4px 10px 10px 10px;
background-color: rgba(255, 255, 255, 0.5);
}
</style>
<script type='text/javascript'>
//<![CDATA[
/* global cpdefine chilipeppr cprequire */
cprequire_test(["inline:com-chilipeppr-workspace-nodemcu"], function(ws) {
console.log("initting workspace");
ws.init();
ws.loadFlashMsg();
$('title').html("Console Workspace");
$('body').css('padding', '10px');
} /*end_test*/ );
// This is the main definition of your widget. Give it a unique name.
cpdefine("inline:com-chilipeppr-workspace-nodemcu", ["chilipeppr_ready"], function() {
return {
/**
* The ID of the widget. You must define this and make it unique.
*/
id: "com-chilipeppr-workspace-nodemcu", // Make the id the same as the cpdefine id
name: "Workspace / NodeMCU", // The descriptive name of your widget.
desc: `A ChiliPeppr Workspace that lets you interact with the NodeMCU device. \
The NodeMCU device is an ESP8266 wifi module with an attached USB serial port bridge \
so you can easily use it and program it from your computer via the serial port. Thus, the NodeMCU \
works brilliantly with ChiliPeppr. Secondly, \
the NodeMCU has the Lua language preloaded onto the ESP8266 so you can easily program \
the device.This workspace gives you convenience methods for programming the NodeMCU device. \
You can buy the ESP8266 on ebay.com or aliexpress.com.`,
url: "http://raw.githubusercontent.com/chilipeppr/workspace-nodemcu/master/auto-generated-workspace.html", // The final URL of the working widget as a single HTML file with CSS and Javascript inlined. You can let runme.js auto fill this if you are using Cloud9.
fiddleurl: "http://ide.c9.io/chilipeppr/workspace-nodemcu", // The edit URL. This can be auto-filled by runme.js in Cloud9 if you'd like, or just define it on your own to help people know where they can edit/fork your widget
githuburl: "http://github.com/chilipeppr/workspace-nodemcu", // The backing github repo
testurl: "http://workspace-nodemcu-chilipeppr.c9users.io/workspace.html", // The standalone working widget so can view it working by itself
/**
* Contains reference to the Console widget object.
*/
widgetConsole: null,
/**
* Contains reference to the Serial Port JSON Server object.
*/
widgetSpjs: null,
/**
* Contains reference to the Lua Editor widget.
*/
widgetLuaEditor: null,
/**
* The workspace's init method. It loads the Console widget and then the SPJS widget.
*/
init: function() {
var that = this;
$('#' + this.id).removeClass("hidden");
// now we can load the SPJS widget
that.loadSpjsWidget(function() {
console.log("spjs widget loaded");
// Load the console widget
that.loadConsoleWidget(function() {
console.log("console widget loaded, now lets load spjs");
// if we get here, we can init the Console Widget
// (we are now initting the widget immediately)
that.widgetConsole.init(true, /chilipeppr heartbeat/);
//that.widgetConsole.resize();
that.setupResize();
});
})
this.loadLuaEditor();
//this.loadFlashMsg();
setTimeout(this.loadWorkspaceMenu.bind(this), 100);
this.setupNodeMcuCommands();
this.loadFileListWidget();
this.loadSampleCodeWidget();
this.loadDocsWidget();
this.addBillboardToWorkspaceMenu();
},
/**
* Setup all the command buttons to do their thing.
*/
setupNodeMcuCommands: function() {
var that = this;
setTimeout(function() {
console.log("doing btns");
$('#' + that.id + ' .nodemcu-commands .btn').each(function(index) {
var el = $(this);
var dataClick = el.data('click');
console.log("btn el:", el, "data-click:", dataClick);
if (that[dataClick]) {
el.click(that[dataClick].bind(that));
console.log("bound to ", that[dataClick]);
}
});
}, 300);
},
onClickReset: function(evt) {
console.log("got onClickReset. evt:", evt);
this.send('node.restart()');
},
onClickHeap: function(evt) {
console.log("got onClickHeap. evt:", evt);
this.send('=node.heap()');
},
onClickChipId: function(evt) {
console.log("got onClickChipId. evt:", evt);
this.send('=node.chipid()');
},
onClickChipInfo: function(evt) {
console.log("got onClickChipInfo. evt:", evt);
this.send('=node.info()');
},
onClickFlashId: function(evt) {
console.log("got onClickFlashId. evt:", evt);
this.send('=node.flashid()');
},
onClickFsInfo: function(evt) {
console.log("got onClickFsInfo. evt:", evt);
this.send('r,u,t=file.fsinfo()\nprint("Total : " .. t .. " bytes\\r\\nUsed : " .. u .. " bytes\\r\\nRemain: " .. r .. " bytes\\r\\n")\nr=nil u=nil t=nil');
},
onClickListFiles: function(evt) {
console.log("got onClickListFiles. evt:", evt);
this.send('l = file.list()\nfor k,v in pairs(l) do\nprint("name:" .. k .. ", size:" .. v)\nend\nl=nil');
},
onClickCreateTestFile: function(evt) {
console.log("got onClickCreateTestFile. evt:", evt);
this.send(`-- open 'test.lua' in 'a+' mode to append
file.open("test.lua", "a+")
-- write 'foo bar' to the end of the file
file.writeline('print("hello world")')
file.close()`);
},
onClickReadTestFile: function(evt) {
console.log("got onClickReadTestFile. evt:", evt);
this.send(`-- read 'test.lua' in 'r' mode for read-only
file.open("test.lua", "r")
-- read to the end of the file
txt = file.read()
print(txt)
file.close()
txt = nil`);
},
onClickReadInitFile: function(evt) {
console.log("got onClickReadInitFile. evt:", evt);
this.send(`-- read 'init.lua' in 'r' mode for read-only
file.open("init.lua", "r")
-- read to the end of the file
txt = file.read()
print(txt)
file.close()
txt = nil`);
},
onClickCreateInitFile: function(evt) {
console.log("got onClickCreateInitFile. evt:", evt);
this.send(`-- open 'init.lua' in 'w' mode to overwrite anything
file.open("init.lua", "w")
-- write a print statement to the auto-start init.lua file
file.writeline('print("Just ran auto-start init.lua. Put your own code here.")')
file.close()
-- do node.restart() to see init.lua run`);
},
onClickFormat: function(evt) {
console.log("got onClickFormat. evt:", evt);
this.send(`-- please wait after this runs as it takes about a minute
file.format()`);
},
onClickBlink: function(evt) {
console.log("got onClickBlink. evt:", evt);
this.send(`-- Config
pin = 4 --> GPIO2
value = gpio.LOW
duration = 1000 --> 1 second
-- Function toggles LED state
function toggleLED ()
if value == gpio.LOW then
value = gpio.HIGH
else
value = gpio.LOW
end
gpio.write(pin, value)
end
-- Initialise the pin
gpio.mode(pin, gpio.OUTPUT)
gpio.write(pin, value)
-- Create an interval
tmr.alarm(0, duration, 1, toggleLED)`);
},
onClickReadVdd33: function(evt) {
console.log("got onClickReadVdd33. evt:", evt);
this.send(`v = adc.readvdd33() / 1000
print(v)
v=nil`);
},
onClickListAps: function(evt) {
console.log("got onClickListAps. evt:", evt);
this.send(`function listap(t)
for ssid,v in pairs(t) do
authmode, rssi, bssid, channel =
string.match(v, "(%d),(-?%d+),(%x%x:%x%x:%x%x:%x%x:%x%x:%x%x),(%d+)")
print(ssid,authmode,rssi,bssid,channel)
end
end
wifi.sta.getap(listap)`);
},
sendCtr: 0,
/**
* Send the script off to the serial port.
*/
send: function(txt) {
var cmds = txt.split(/\n/g);
var ctr = 0;
var that = this;
for (var indx in cmds) {
//setTimeout(function() {
var cmd = cmds[ctr];
chilipeppr.publish("/com-chilipeppr-widget-serialport/jsonSend", {
D: cmd + '\n',
Id: "nodemcu-" + that.sendCtr++
});
ctr++;
//}, 10 * indx);
}
},
/**
* Returns the billboard HTML, CSS, and Javascript for this Workspace. The billboard
* is used by the home page, the workspace picker, and the fork pulldown to show a
* consistent name/image/description tag for the workspace throughout the ChiliPeppr ecosystem.
*/
getBillboard: function() {
var el = $('#' + this.id + '-billboard').clone();
el.removeClass("hidden");
el.find('.billboard-desc').text(this.desc);
return el;
},
addBillboardToWorkspaceMenu: function() {
// get copy of billboard
var billboardEl = this.getBillboard();
$('#' + this.id + ' .com-chilipeppr-ws-billboard').append(billboardEl);
},
/**
* Listen to window resize event.
*/
setupResize: function() {
$(window).on('resize', this.onResize.bind(this));
},
/**
* When browser window resizes, forcibly resize the Console window
*/
onResize: function() {
if (this.widgetConsole) this.widgetConsole.resize();
if (this.widgetLuaEditor) this.widgetLuaEditor.resize();
},
/**
* Load the Console widget via chilipeppr.load()
*/
loadConsoleWidget: function(callback) {
var that = this;
chilipeppr.load(
"#consoleWidget",
// "http://fiddle.jshell.net/chilipeppr/rczajbx0/show/light/",
"http://raw.githubusercontent.com/chilipeppr/widget-console/master/auto-generated-widget.html",
// "http://widget-console-chilipeppr.c9users.io/widget.html",
function() {
// Callback after widget loaded into #myDivWidgetInsertedInto
cprequire(
["inline:com-chilipeppr-widget-spconsole"], // the id you gave your widget
function(mywidget) {
// Callback that is passed reference to your newly loaded widget
console.log("My widget just got loaded.", mywidget);
that.widgetConsole = mywidget;
// that.widgetConsole.init(true, /^{/);
// load spjs widget so we can test
//http://fiddle.jshell.net/chilipeppr/vetj5fvx/show/light/
callback();
}
);
}
);
},
/**
* Load the Serial Port JSON Server widget via chilipeppr.load()
*/
loadSpjsWidget: function(callback) {
var that = this;
chilipeppr.load(
"#spjsWidget",
//"http://fiddle.jshell.net/chilipeppr/vetj5fvx/show/light/",
"http://raw.githubusercontent.com/chilipeppr/widget-spjs/master/auto-generated-widget.html",
function() {
console.log("mycallback got called after loading spjs module");
cprequire(["inline:com-chilipeppr-widget-serialport"], function(spjs) {
//console.log("inside require of " + fm.id);
spjs.setSingleSelectMode();
//spjs.init(null, "timed", 9600);
spjs.init({
isSingleSelectMode: true,
defaultBuffer: "nodemcu",
defaultBaud: 115200, //9600,
bufferEncouragementMsg: 'For your NodeMCU device please choose the "nodemcu" buffer in the pulldown and a 9600 baud rate before connecting.'
});
//spjs.showBody();
//spjs.consoleToggle();
that.widgetSpjs = spjs;
callback();
});
}
);
},
/**
* Load Flash Module so we can show flash messages.
*/
loadFlashMsg: function() {
chilipeppr.load("#com-chilipeppr-widget-flash-instance",
"http://fiddle.jshell.net/chilipeppr/90698kax/show/light/",
function() {
console.log("mycallback got called after loading flash msg module");
cprequire(["inline:com-chilipeppr-elem-flashmsg"], function(fm) {
//console.log("inside require of " + fm.id);
fm.init();
});
}
);
},
/**
* Load the workspace menu.
*/
loadWorkspaceMenu: function() {
// Workspace Menu with Workspace Billboard
var that = this;
chilipeppr.load(
"http://fiddle.jshell.net/chilipeppr/zMbL9/show/light/",
function() {
require(['inline:com-chilipeppr-elem-pubsubviewer'], function(pubsubviewer) {
var el = $('#' + that.id + ' .com-chilipeppr-ws-menu .dropdown-menu-ws');
console.log("got callback for attachto menu for workspace for nodemcu.. attaching to el:", el);
pubsubviewer.attachTo(
el,
that,
"Workspace"
);
});
}
);
},
/**
* Load the widget for the Lua Editor which is based on the Macro widget from
* the TinyG workspace.
*/
loadLuaEditor: function() {
// #com-chilipeppr-widget-luaeditor-instance
var that = this;
chilipeppr.load(
"#com-chilipeppr-widget-luaeditor-instance",
"http://raw.githubusercontent.com/chilipeppr/widget-luaeditor/master/auto-generated-widget.html",
function() {
require(['inline:com-chilipeppr-widget-luaeditor'], function(luaeditor) {
that.widgetLuaEditor = luaeditor;
luaeditor.init();
luaeditor.resize();
});
}
);
},
/**
* Load Sample Code Widget
*/
loadSampleCodeWidget: function() {
chilipeppr.load(
"#nodemcu-sample-code",
"http://raw.githubusercontent.com/chilipeppr/widget-nodemcusamples/master/auto-generated-widget.html",
function() {
// Callback after widget loaded into #myDivWidgetNodemcusamples
// Now use require.js to get reference to instantiated widget
cprequire(
["inline:com-chilipeppr-widget-nodemcusamples"], // the id you gave your widget
function(myObjWidgetNodemcusamples) {
// Callback that is passed reference to the newly loaded widget
console.log("Widget / NodeMCU Samples just got loaded.", myObjWidgetNodemcusamples);
myObjWidgetNodemcusamples.init();
}
);
}
);
},
/**
* Load Files Widget
*/
loadFileListWidget: function() {
chilipeppr.load(
"#nodemcu-filelist-instance",
"http://raw.githubusercontent.com/chilipeppr/widget-nodemcu-files/master/auto-generated-widget.html",
function() {
// Callback after widget loaded into #myDivWidgetNodemcusamples
// Now use require.js to get reference to instantiated widget
cprequire(
["inline:com-chilipeppr-widget-nodemcu-files"], // the id you gave your widget
function(myObjWidgetNodemcuFiles) {
// Callback that is passed reference to the newly loaded widget
console.log("Widget / NodeMCU File List just got loaded.", myObjWidgetNodemcuFiles);
myObjWidgetNodemcuFiles.init();
}
);
}
);
},
/**
* Load Firmware/Docs widget
*/
loadDocsWidget: function() {
chilipeppr.load(
"#com-chilipeppr-widget-nodemcu-docs-instance",
"http://raw.githubusercontent.com/chilipeppr/widget-nodemcu-docs/master/auto-generated-widget.html",
function() {
// Callback after widget loaded into #myDivWidgetNodemcusamples
// Now use require.js to get reference to instantiated widget
cprequire(
["inline:com-chilipeppr-widget-nodemcu-docs"], // the id you gave your widget
function(myObjWidgetNodemcuDocs) {
// Callback that is passed reference to the newly loaded widget
console.log("Widget / NodeMCU Docs & Install just got loaded.", myObjWidgetNodemcuDocs);
myObjWidgetNodemcuDocs.init();
}
);
}
);
}
}
});
//]]>
</script>
</head>
<body>
<div id="com-chilipeppr-widget-flash-instance"></div>
<div id="com-chilipeppr-workspace-nodemcu" class="hidden">
<div class="container-fluid">
<div class="row">
<!-- Left Column -->
<div class="col-md-4 col-nopadrt col-nopadleft">
<div class="com-chilipeppr-ws-hdr well">Workspace - NodeMCU (ESP8266)
<div class="com-chilipeppr-ws-menu pull-right">
<div class="btn-group">
<div class="dropdown">
<button type="button" class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
<ul class="dropdown-menu dropdown-menu-ws xdropdown-menu-right" role="menu">
<li class="com-chilipeppr-ws-menu-billboard" style="width:350px;">
<!-- Billboard -->
<div class="com-chilipeppr-ws-billboard">
</div>
<!-- End Billboard -->
</li>
</ul>
</div>
</div>
</div>
<div class="xwell xcom-chilipeppr-ws-hdr nodemcu-commands xhidden" style="padding-top:10px;">
<div class="well" style="margin-bottom:10px;padding:10px;min-height:50px;font-size:11px;line-height:14px;">
<button type="button" class="btn btn-sm btn-default" style="float:left; margin-right:20px;" data-click="onClickReset">Reset</button>
If your commands into the device stall, you should reset it.
</div>
<!--<div class="btn-group btn-group-xs" role="group">-->
<button type="button" class="btn btn-xs btn-default" data-click="onClickHeap">Heap</button>
<button type="button" class="btn btn-xs btn-default" data-click="onClickChipId">Chip ID</button>
<button type="button" class="btn btn-xs btn-default" data-click="onClickChipInfo">Chip Info</button>
<button type="button" class="btn btn-xs btn-default" data-click="onClickFlashId">Flash ID</button>
<!--</div>-->
<!--<div class="btn-group btn-group-xs" role="group">-->
<button type="button" class="btn btn-xs btn-default" data-click="onClickFsInfo">Filesystem Info</button>
<button type="button" class="btn btn-xs btn-default" data-click="onClickListFiles">List Files</button>
<button type="button" class="btn btn-xs btn-default" data-click="onClickCreateTestFile">Append to Test File</button>
<button type="button" class="btn btn-xs btn-default" data-click="onClickReadTestFile">Read Test File</button>
<button type="button" class="btn btn-xs btn-default" data-click="onClickCreateInitFile">Create Init File</button>
<button type="button" class="btn btn-xs btn-default" data-click="onClickReadInitFile">Read Init File</button>
<button type="button" class="btn btn-xs btn-default" data-click="onClickFormat">Format</button>
<button type="button" class="btn btn-xs btn-default" data-click="onClickReload">Reload</button>
<!--</div>-->
<!--<div class="btn-group btn-group-xs" role="group">-->
<button type="button" class="btn btn-xs btn-default" data-click="onClickBlink">Blink LED</button>
<button type="button" class="btn btn-xs btn-default" data-click="onClickReadVdd33">Read Voltage</button>
<!--</div>-->
<!--<div class="btn-group btn-group-xs" role="group">-->
<button type="button" class="btn btn-xs btn-default" data-click="onClickListAps">List Access Points</button>
<!--</div>-->
</div>
</div>
<div id="nodemcu-filelist-instance">
File List goes here
</div>
<div id="consoleWidget"></div>
</div>
<!-- Center Column -->
<div class="col-md-5 col-nopadrt">
<div id="com-chilipeppr-widget-luaeditor-instance"></div>
</div>
<!-- Right Column -->
<div class="col-md-3 col-nopadrt">
<div id="spjsWidget"></div>
<div id="com-chilipeppr-widget-nodemcu-docs-instance"></div>
<div id="nodemcu-sample-code">
Sample code goes here
</div>
</div>
</div>
</div>
</div>
<div id="com-chilipeppr-workspace-nodemcu-billboard" class="hidden">
<div class="billboard-content">
<h4 class="billboard-title" style="">NodeMCU Workspace</h4>
<p class="billboard-url" style=""><a href="http://chilipeppr.com/nodemcu">chilipeppr.com/nodemcu</a>
</p>
<div class="billboard-imgcontain" style="">
<a href="http://chilipeppr.com/nodemcu">
<div class="billboard-img" style="background-image: url('https://github.com/chilipeppr/workspace-nodemcu/raw/master/nodemcu.jpg')" />
</a>
<div class="billboard-stats2">
</div>
</div>
<p class="billboard-desc">
A ChiliPeppr Workspace that lets you interact with the NodeMCU device. The NodeMCU device is an ESP8266 wifi module with an attached USB serial port bridge so you can easily use it and program it from your computer via the serial port. Thus, the NodeMCU
works brilliantly with ChiliPeppr. Secondly, the NodeMCU has the Lua language preloaded onto the ESP8266 so you can easily program the device.This workspace gives you convenience methods for programming the NodeMCU device. You can buy
the ESP8266 on ebay.com or aliexpress.com.
</p>
</div>
</div>
</body>
</html>