API for upload code into device? #3705
Replies: 7 comments
-
Posted at 2021-04-19 by @gfwilliams Hi! I think if you want to upload from a website you probably want the 'Puck.js' library (it's just just for Puck.js, but for all Espruino devices). Check out http://www.espruino.com/Web+Bluetooth for some examples - but it should be very easy to use it to configure an MDBT42 from a website |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-04-19 by David1234321 the device is not near the computer |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-04-19 by @gfwilliams I don't understand. You're asking whether you can remotely change the beacon's code from somewhere where there is no internet connection or access to Bluetooth Low Energy? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-04-19 by David1234321 no Thanks , |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-04-19 by @fanoush Of course you can, there is nothing special in the IDE. You have Espruino interpreter console on the serial port so you can do everything. Just send the code directly 'as is' to serial port and it gets executed immediately (so you may start with sending there is also espruino command https://github.com/espruino/EspruinoTools that may be easier for you |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-04-19 by David1234321 Thanks ! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-04-19 by @gfwilliams Just to add - with https://github.com/espruino/EspruinoTools you can output what would have been written to espruino with So you could get your code, run it through that command-line tool, and then use whatever you've got connected to the RX/TX pins to send the bytes from that file - and you've got your firmware update sorted. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-04-18 by David1234321
Hello,
wanted to know if there is a way to upload the code not using IDE ?
or somehow to intigrate it into my website using API ?
I'm using the MDBT42 only as a beacon - and I want to be able to change it's name when ever I want to
is this somthing reasonable to do ?
is there any way to do it?
*** I have created a virtual com to the device and using the webIDE I can uplaod to him the wanted code , so no netwrok issue
Thanks ,
Beta Was this translation helpful? Give feedback.
All reactions