• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

HTML into Arduino IDE

Q&A Forum › HTML into Arduino IDE
0 Vote Up Vote Down
Nazmie Razali asked 6 years ago

Hi, I’m using this link (https://canvasjs.com/javascript-charts/dynamic-live-multi-series-chart/) as my reference to plot a graph in a webserver. In this code there is a line that I want to adjust according to my need.

// pushing the new values
dataPoints1.push({
x: time.getTime(),
y: yValue1
});

in this code, I want to change the yValue1 into a variable that I stored my sensor data called ‘Temperature’.

How can I apply this HTML code into Arduino IDE?

Below is the way I did, is it correct?

client.println("dataPoints1.push( { x: time.getTime() , y: temperature }); } ");
1 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Hello, you would need to do something like this: 

String your_yValue1_variable = "your_value";
client.println("dataPoints1.push( { x: time.getTime() , y: ");
client.println(your_yValue1_variable);
client.println("}); } ");

Basically, you just need to do a client.println() with your desired variable. I hope that helps!

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.