Asked
Resolved Resolved by DJ Sures!

Check If Connected In Java Script

i know you can check for connection in EZB scripting language by using isconnected(1).  What is it for JavaScript?

I cant find it in the help section.


Related Hardware EZ-B v4

ARC Pro

Upgrade to ARC Pro

Elevate your robot's capabilities to the next level with Synthiam ARC Pro, unlocking a world of possibilities in robot programming.

PRO
Synthiam
#1  

Here you go: https://synthiam.com/Support/javascript-api/EZB/isConnected

PRO
USA
#2  

Thank you for the information.  I have bookmarked for future reference.

PRO
Synthiam
#3   — Edited

Awesome - If you ever forget it, find the manual by clicking on SUPPORT at the top of the website. Along the left you will see all of the categories for getting started, programming, skills manuals, hardware, etc...

User-inserted image

#4  

Thanks for adding that JavaScript coding help section. I really want to learn how to code in this language. I have some very cumbersome scripts in EZ Script that I'd like to see if they work better in JavaScript. Then eventually rep[lace all my EZ Scripts with JavaScript. Hopefully soon when I have more time on hand.

Is it possible in ARC to run both JavaScripts and EZ Scripts in within the same project?

PRO
Synthiam
#5  

Yes. When you edit a script, choose what language you want.

#6  

Thanks DJ.  Good to know. I'm looking forward to getting into this.