evothings / ecraft2learn Goto Github PK
View Code? Open in Web Editor NEWeCraft2learn repository
eCraft2learn repository
If I run my Snap4Arduino code on an HTTPS page I get this error from Chrome:
mqttws.js:1046 Mixed Content: The page at 'https://snap.berkeley.edu/snapsource/snap.html' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://raspberrypi.local:1884/mqtt'. This request has been blocked; this endpoint must be available over WSS.
Note that in Snap4Arduino there is no need -- it somehow finds out the board type. (At least among a list of known boards.)
I guess using HTTP it would be the JavaScript equivalent of this example:
curl -d '{"sketch":"foo.ino", "src":"LyoKICogQXV0aG9yOiBHw7ZyYW4gS3JhbXBlCiAqCiAqLwoKdm9pZCBzZXR1cCgpIHsKICBwaW5Nb2RlKDEzLCBPVVRQVVQpOwp9Cgp2b2lkIGxvb3AoKSB7CiAgbGVkX29uKCk7CiAgZGVsYXkoMTAwMCk7CiAgbGVkX29mZigpOwogIGRlbGF5KDEwMDApOwp9Cgp2b2lkIGxlZF9vbigpCnsKICBkaWdpdGFsV3JpdGUoMTMsIDEpOwp9Cgp2b2lkIGxlZF9vZmYoKQp7CiAgZGlnaXRhbFdyaXRlKDEzLCAwKTsKfQo="}' --header "Content-Type:application/json" http://raspberrypi.local:8080/verify
How about MQTT ?
ArduinoIDE parses error messages from GCC and reconstructs them on output - but failed to bring along column numbers for errors. This is fixed in this PR (and associated build):
We can grab that build (although PR not merged in kosher repo yet) and fix it on our side so that error markers not only point at a line, but also at a column number. Also fix editor UI.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.