{"id":1,"date":"2021-01-27T15:00:09","date_gmt":"2021-01-27T15:00:09","guid":{"rendered":"http:\/\/192.168.64.2\/WordPress\/?p=1"},"modified":"2022-10-27T09:39:39","modified_gmt":"2022-10-27T07:39:39","slug":"watttap","status":"publish","type":"post","link":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/","title":{"rendered":"WattTap"},"content":{"rendered":"<div class=\"markdown-body\"><div class=\"markdown-heading\"><h1 class=\"heading-element\">WattTap<\/h1><a id=\"user-content-watttap\" class=\"anchor\" aria-label=\"Permalink: WattTap\" href=\"#watttap\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>This project creates a connected Wattmeter using a TapNLink module. The project uses TapNLink's embedded Java Virtual Machine (JVM) as the application processor. The JVM runs a simple Java program retrieves power consumption data from the Wattmeter.<\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">*** WARNING ***<\/h2><a id=\"user-content--warning-\" class=\"anchor\" aria-label=\"Permalink: *** WARNING ***\" href=\"#-warning-\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>THE WATTMETER IN THIS DESIGN CONNECTS DIRECTLY TO 220 VOLT MAINS POWER.<\/p> \n<p>Physical contact with any component of the design can cause electrocution resulting in serious INJURY, or DEATH.<\/p> \n<p>DO NOT reproduce this design without appropriate knowledge of, and protective measures for working with mains power.<\/p>\n<p>Disconnect power before handling the material or manipulating the connections. Ensure that material is properly grounded and isolated. Always work with another adult present in case of an emergency.<\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">*** DISCLAIMER ***<\/h2><a id=\"user-content--disclaimer-\" class=\"anchor\" aria-label=\"Permalink: *** DISCLAIMER ***\" href=\"#-disclaimer-\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>This electrical project is provided ONLY for testing and experimentation by qualified persons in electronics design labs.<\/p>\n<p>The person reproducing this example accepts full responsibility to any injury, or damage that may result.<\/p>\n<p>This example is not a product. This example is not Certified, Qualified, Approved, or Recommended for any commercial use, or for any use by the general public.<\/p>\n<blockquote>\n<blockquote>\n<p>Note: Before starting, learn how TapNLink and the associated tools work in this <a href=\"http:\/\/docs.iotize.com\/GettingStarted\/\" rel=\"nofollow\">Getting Started<\/a>.<\/p>\n<\/blockquote>\n<\/blockquote>\n<p>This project is on <a href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/tree\/main\/WattTap-demo\">GitHub<\/a> !<\/p>\n<p>The project has 4 folders:<\/p>\n<ul>\n<li>\n<code>app_generated\/WattTap.apk<\/code>: The sources for the mobile application that was automatically generated by the IoTize mobile app build server.<\/li>\n<li>\n<code>java\/WattTap.java<\/code>: The Java code that is executed by the <code>JVM<\/code>.<\/li>\n<li>\n<code>iotize_studio\/WattTap.iotz<\/code>: The IoTize Studio configuration file that is used to configure the TapNLink for this demo.<\/li>\n<li>\n<code>doc\/WattTapDemo.pdf<\/code>: The illustrations and the readme file for the <code>Java<\/code> code.<\/li>\n<\/ul>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">The Main Components<\/h2><a id=\"user-content-the-main-components\" class=\"anchor\" aria-label=\"Permalink: The Main Components\" href=\"#the-main-components\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>The main components in this project, and where you can purchase them are:<\/p>\n<ul>\n<li>The TapNLink communication module <a href=\"https:\/\/www.iotize.com\/iotize-distributors.html\" rel=\"nofollow\">is available from these distributors<\/a>.<\/li>\n<li>The BL0937 power sensor <a href=\"https:\/\/www.aliexpress.com\/wholesale?catId=0&amp;initiative_id=SB_20210218083908&amp;isPremium=y&amp;SearchText=bl0937\" rel=\"nofollow\">is available here<\/a>.<\/li>\n<li>The plastic casing <a href=\"https:\/\/www.aliexpress.com\/item\/4000287507400.html?spm=a2g0o.productlist.0.0.309d44dfcbyy66&amp;algo_pvid=642dec70-5635-4468-b159-30d6b13c2028&amp;algo_expid=642dec70-5635-4468-b159-30d6b13c2028-3&amp;btsid=2100bb5116136655014285201e8088&amp;ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_\" rel=\"nofollow\">is available here<\/a>.<\/li>\n<\/ul>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">How it Works<\/h2><a id=\"user-content-how-it-works\" class=\"anchor\" aria-label=\"Permalink: How it Works\" href=\"#how-it-works\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>The pictures below show the hardware set up. An extension cord has been cut and each half has been connected to the board:<\/p>\n<p align=\"center\">\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/blob\/main\/WattTap-demo\/doc\/images\/picture_1.jpg\"><img decoding=\"async\" src=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/raw\/main\/WattTap-demo\/doc\/images\/picture_1.jpg\" width=\"250\" style=\"max-width: 100%;\"><\/a>\n<\/p>\n<p align=\"center\">\n    <em>Wattmeter, cord assembly<\/em>\n<\/p>\n<p>\nThe wattmeter acts as a spy between the mains plug and the load.\n<\/p>\n<p align=\"center\">\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/blob\/main\/WattTap-demo\/doc\/images\/picture_2.jpg\"><img decoding=\"async\" src=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/raw\/main\/WattTap-demo\/doc\/images\/picture_2.jpg\" width=\"250\" style=\"max-width: 100%;\"><\/a>\n<\/p>\n<p align=\"center\">\n    <em>Inside the plastic casing<\/em>\n<\/p>\n<p>\nInside the plastic case, the TapNLink module is linked to the board using a ribbon cable.\n<\/p>\n<p align=\"center\">\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/blob\/main\/WattTap-demo\/doc\/images\/picture_3.jpg\"><img decoding=\"async\" src=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/raw\/main\/WattTap-demo\/doc\/images\/picture_3.jpg\" width=\"250\" style=\"max-width: 100%;\"><\/a>\n<\/p>\n<p align=\"center\">\n    <em>TapNLink isolation<\/em>\n<\/p>\n<p>\nKapton tape is added for isolation between the TapNLink and the main board to avoid a short.\n<\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Overview<\/h2><a id=\"user-content-overview\" class=\"anchor\" aria-label=\"Permalink: Overview\" href=\"#overview\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p align=\"center\">\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/blob\/main\/WattTap-demo\/doc\/images\/diagram.png\"><img decoding=\"async\" src=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/raw\/main\/WattTap-demo\/doc\/images\/diagram.png\" style=\"max-width: 100%;\"><\/a>\n<\/p>\n<p align=\"center\">\n    <em>General view of the project<\/em>\n<\/p>\n<p>\nThe general diagram shows the mains plug connected to the wattmeter. The wattmeter is based on a single component (BL0937) that measures both the current and the voltage and calculates the instantaneous power consumption. The TapNLink module reads the information from the wattmeter and transmits the data to a smartphone. This data is viewed in an app that is generated automatically by the IoTize software tools based on the configuration of the TapNLink.\n<\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Schematic<\/h2><a id=\"user-content-schematic\" class=\"anchor\" aria-label=\"Permalink: Schematic\" href=\"#schematic\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p align=\"center\">\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/blob\/main\/WattTap-demo\/doc\/images\/wattmeter.png\"><img decoding=\"async\" src=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/raw\/main\/WattTap-demo\/doc\/images\/wattmeter.png\" style=\"max-width: 100%;\"><\/a>\n<\/p>\n<p align=\"center\">\n    <em>Electrical diagram<\/em>\n<\/p>\n<p>\nThe current is measured through R1 (1 mOhm resistor). The voltage is divided through a series of 330ko resistors before reaching the sensor. Using several resistors is preferred because of the high voltage. \n<\/p>\n<div class=\"markdown-heading\"><h4 class=\"heading-element\">BL0937 to TapNLink<\/h4><a id=\"user-content-bl0937-to-tapnlink\" class=\"anchor\" aria-label=\"Permalink: BL0937 to TapNLink\" href=\"#bl0937-to-tapnlink\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>The TapNLink has two extension connectors. The 'target connector' is used as a set of simple GPIOs. Because the data is sent as a series of pulses, the input will be configured as counters. The power is proportional to the frequency of the output signals.\nThe BL0937 has two outputs:<\/p>\n<ul>\n<li>\n<code>CF0<\/code> (power) is connected to TARGET_RST of the TapNLink<\/li>\n<li>\n<code>CF1<\/code> (current\/voltage) is connected to the <code>TARGET_SWDIO<\/code>pin\nThe selection of current or voltage is done with <code>SEL<\/code>  connected to the <code>TARGET_SWDIO<\/code>pin.<\/li>\n<\/ul>\n<p align=\"center\">\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/blob\/main\/WattTap-demo\/doc\/images\/tap_targ.png\"><img decoding=\"async\" src=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/raw\/main\/WattTap-demo\/doc\/images\/tap_targ.png\" width=\"300\" style=\"max-width: 100%;\"><\/a>\n<\/p>\n<p align=\"center\">\n    <em>TapNLink target connector<\/em>\n<\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Java Code<\/h2><a id=\"user-content-java-code\" class=\"anchor\" aria-label=\"Permalink: Java Code\" href=\"#java-code\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>In the <code>Java<\/code> code executed by the <code>JVM<\/code>, the <code>onCheck()<\/code> method is called periodically (the period is specified in the <code>TapNLinkVar<\/code> construct). With this method, we get an image of the power by considering the differences of the pulse counts during the elapsed time period.<\/p>\n<ul>\n<li>For more <code>Java<\/code> code information, <a href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/tree\/main\/WattTap-demo\/doc\/Java_code\/Java_code.md\">click here<\/a> !<\/li>\n<\/ul>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">IoTize Studio<\/h2><a id=\"user-content-iotize-studio\" class=\"anchor\" aria-label=\"Permalink: IoTize Studio\" href=\"#iotize-studio\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<ol>\n<li>Open the TapNLink configuration project <code>iotize_studio\/WattTap.iotz<\/code> with IoTize Studio. For more information about Studio, <a href=\"http:\/\/docs.iotize.com\/UserManuals\/IotizeStudio\/\" rel=\"nofollow\">click here<\/a>.<\/li>\n<li>In the <code>IoTize_Studio\/Tap<\/code> section, set <code>User internal JVM<\/code> to <code>Yes<\/code> and set the <code>.java<\/code> file path <code>java\/WattTap.java<\/code>.<\/li>\n<li>In IoTize Studio, execute <code>java<\/code> build to generate the <code>.bcb<\/code> file.<\/li>\n<li>Configure your <code>TapNLink<\/code> with <code>IoTize Studio<\/code> :\n<ul>\n<li><a href=\"http:\/\/docs.iotize.com\/UserManuals\/DiverseTools\/\" rel=\"nofollow\">Setup the connection to your TapNLink<\/a><\/li>\n<li>\n<a href=\"http:\/\/docs.iotize.com\/Technologies\/AWSIot\/\" rel=\"nofollow\">Set the IoT Platform (MQTT) information<\/a>.<\/li>\n<li>Click on the <code>Configure<\/code> button and wait for the end of the configuration process.<\/li>\n<\/ul>\n<\/li>\n<li>Reboot the TapNLink to apply the new configuration.<\/li>\n<\/ol>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Running the 'WattTap' App<\/h2><a id=\"user-content-running-the-watttap-app\" class=\"anchor\" aria-label=\"Permalink: Running the 'WattTap' App\" href=\"#running-the-watttap-app\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<ul>\n<li>Because this app has not been published on the app stores, you have to install it manually. See how this is done <a href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/tree\/main\/WattTap-demo\/app_generated\/WattTap.apk\">here<\/a>.<\/li>\n<li>After your circuit is properly connected, and your TapNLink configured, launch the mobile app. The fastest way is to approach your mobile phone (with NFC enabled) to the plastic casing. NFC will launch the app and connect the mobile to the TapNLink automatically.<\/li>\n<\/ul>\n<p align=\"center\">\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/blob\/main\/WattTap-demo\/doc\/images\/picture_end.jpg\"><img decoding=\"async\" src=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/raw\/main\/WattTap-demo\/doc\/images\/picture_end.jpg\" width=\"400\" style=\"max-width: 100%;\"><\/a>\n<\/p>\n<p align=\"center\">\n   <em>Wattmeter connected to an electric radiator<\/em>\n<\/p>\n<ul>\n<li>With <code>TapNLink<\/code>, you can now monitor the instantaneous power consumption, or the consumption data that has been stored in the module.<\/li>\n<\/ul>\n<p align=\"center\">\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/blob\/main\/WattTap-demo\/doc\/images\/app.jpg\"><img decoding=\"async\" src=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/raw\/main\/WattTap-demo\/doc\/images\/app.jpg\" width=\"200\" style=\"max-width: 100%;\"><\/a>\n<\/p>\n<p align=\"center\">\n    <em>Viewing in the app<\/em>\n<\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Calibration<\/h2><a id=\"user-content-calibration\" class=\"anchor\" aria-label=\"Permalink: Calibration\" href=\"#calibration\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>Because the components used are not very precise, you should calibrate our Wattmeter using a multimeter. Our focus is on measuring active power and requires a a pure resistor. We use an electric radiator. Do not use an appliance like your washing machine that may have high inductance.<\/p>\n<ol>\n<li>\n<code>Login<\/code> to the WattTap application using the admin account to access more parameters.<\/li>\n<li>After connecting, the <code>Calibration<\/code> view is displayed. Click on this.<\/li>\n<li>Now, set the active power, current and voltage factors to 1.<\/li>\n<\/ol>\n<p align=\"center\">\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/blob\/main\/WattTap-demo\/doc\/images\/app_calibration.jpg\"><img decoding=\"async\" src=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/raw\/main\/WattTap-demo\/doc\/images\/app_calibration.jpg\" width=\"200\" style=\"max-width: 100%;\"><\/a>\n<\/p>\n<p align=\"center\">\n    <em>Calibration value<\/em>\n<\/p>\n4. Now the pulse from active power, current and voltage are not adjusted by a calibration factor.\n<blockquote>\n<blockquote>\n<\/blockquote>\n<p>Here are examples for calculating the calibration factor for each of the values:<\/p>\n<\/blockquote>\n<div class=\"markdown-heading\"><h4 class=\"heading-element\">Voltage :<\/h4><a id=\"user-content-voltage-\" class=\"anchor\" aria-label=\"Permalink: Voltage :\" href=\"#voltage-\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<ul>\n<li>Read the voltmeter value (ex. 230V)<\/li>\n<li>Read the WattTap value (ex. 1765)<\/li>\n<li>Divide the voltmeter value by the WattTap value: (ex. 230 \/ 1765 = 0.1303116147308782)<\/li>\n<li>Set the voltage calibration value in WattTap to the calculated value. (ex. 0.13031)<\/li>\n<\/ul>\n<div class=\"markdown-heading\"><h4 class=\"heading-element\">Electric Current<\/h4><a id=\"user-content-electric-current\" class=\"anchor\" aria-label=\"Permalink: Electric Current\" href=\"#electric-current\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<ul>\n<li>Read the voltmeter value (ex. 4 A)<\/li>\n<li>Read the WattTap value (ex. 561)<\/li>\n<li>Divide the voltmeter value by the WattTap value:\n(ex. 4 \/ 561 = 0.0071301247771836)<\/li>\n<li>Set the Electric Current calibration value in WattTap to the calculated value. (ex. 0.00713)<\/li>\n<\/ul>\n<div class=\"markdown-heading\"><h4 class=\"heading-element\">Active Power:<\/h4><a id=\"user-content-active-power\" class=\"anchor\" aria-label=\"Permalink: Active Power:\" href=\"#active-power\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<ul>\n<li>Take the Voltage and Current values from the voltmeter. (ex. 230V and 4A)<\/li>\n<li>Read the Active Power value in WattTap. (ex. 985)<\/li>\n<li>Multiply the voltmeter values for Voltage and Current. (ex. 230 * 4 = 920)<\/li>\n<li>Divide this calculated value by the Active Power value from WattTap.\n(ex. 920 \/ 985 = 0.934010152284264)<\/li>\n<li>Set the Active Power calibration value in WattTap to the calculated value. (ex. 0.93401)<\/li>\n<\/ul>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Send Data Message to AWS<\/h2><a id=\"user-content-send-data-message-to-aws\" class=\"anchor\" aria-label=\"Permalink: Send Data Message to AWS\" href=\"#send-data-message-to-aws\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>\nLogin with the TapNLink admin account and set update shadow on AWS to `active`.\n<\/p>\n<p align=\"center\">\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/blob\/main\/WattTap-demo\/doc\/images\/picture_aws.jpg\"><img decoding=\"async\" src=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/raw\/main\/WattTap-demo\/doc\/images\/picture_aws.jpg\" width=\"200\" style=\"max-width: 100%;\"><\/a>\n<\/p>\n<p align=\"center\">\n    <em>Turn on MQTT messaging to AWS<\/em>\n<\/p>\n<blockquote>\n<blockquote>\n<p>You must set the correct <code>AWS<\/code> information in the TapNLink <code>IoT Platform (MQTT)<\/code>. If not, the <code>JVM<\/code> will be stopped after a few seconds when TapNLink tries to send the messages.<\/p>\n<\/blockquote>\n<\/blockquote>\n<p>When everything is correctly set up, data messages are received for the AWS Thing for your TapNLink.<\/p>\n<p align=\"center\">\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/blob\/main\/WattTap-demo\/doc\/images\/mqtt_shadow.png\"><img decoding=\"async\" src=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/raw\/main\/WattTap-demo\/doc\/images\/mqtt_shadow.png\" width=\"800\" style=\"max-width: 100%;\"><\/a>\n<\/p>\n<p align=\"center\">\n    <em>AWS MQTT message<\/em>\n<\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">More Information<\/h2><a id=\"user-content-more-information\" class=\"anchor\" aria-label=\"Permalink: More Information\" href=\"#more-information\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<ul>\n<li>For more information about the creation of this project, <a href=\"https:\/\/github.com\/iotize-sas\/Open-Projects\/raw\/main\/WattTap-demo\/doc\/WattTapDemo.pdf\">click here<\/a>.<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This article presents a simple connected Wattmeter based on a TapNLink module. The only &#8216;processor&#8217; is the Java Virtual Machine embedded into the TapNLink module that runs a simple Java program. <span class=\"more-tag\"><a class=\"more-link\" href=\"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/\">more<span class=\"screen-reader-text\"> \"WattTap\"<\/span><\/a><\/span><!-- .more-tag --><\/p>\n","protected":false},"author":1,"featured_media":73,"comment_status":"open","ping_status":"open","sticky":false,"template":"page-templates\/post-full-width.php","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-iotized-demo"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WattTap - IoTize Support<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WattTap - IoTize Support\" \/>\n<meta property=\"og:description\" content=\"This article presents a simple connected Wattmeter based on a TapNLink module. The only &#039;processor&#039; is the Java Virtual Machine embedded into the TapNLink module that runs a simple Java program.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/\" \/>\n<meta property=\"og:site_name\" content=\"IoTize Support\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-27T15:00:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-27T07:39:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/support.iotize.com\/wp-content\/uploads\/2021\/02\/picture_end-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1920\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/support.iotize.com\\\/#\\\/schema\\\/person\\\/868a30be4ef1b454ada5232ec26d2f58\"},\"headline\":\"WattTap\",\"datePublished\":\"2021-01-27T15:00:09+00:00\",\"dateModified\":\"2022-10-27T07:39:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/\"},\"wordCount\":13,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/support.iotize.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/support.iotize.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/picture_end-scaled.jpg\",\"articleSection\":[\"IoTized Demo with Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/\",\"url\":\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/\",\"name\":\"WattTap - IoTize Support\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/support.iotize.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/support.iotize.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/picture_end-scaled.jpg\",\"datePublished\":\"2021-01-27T15:00:09+00:00\",\"dateModified\":\"2022-10-27T07:39:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/#primaryimage\",\"url\":\"https:\\\/\\\/support.iotize.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/picture_end-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/support.iotize.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/picture_end-scaled.jpg\",\"width\":2560,\"height\":1920},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/2021\\\/01\\\/27\\\/watttap\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/support.iotize.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WattTap\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/support.iotize.com\\\/#website\",\"url\":\"https:\\\/\\\/support.iotize.com\\\/\",\"name\":\"IoTize Forum\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/support.iotize.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/support.iotize.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/support.iotize.com\\\/#organization\",\"name\":\"IOTIZE\",\"url\":\"https:\\\/\\\/support.iotize.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/support.iotize.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/forum.iotize.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/iotize-logo-lg.png\",\"contentUrl\":\"https:\\\/\\\/forum.iotize.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/iotize-logo-lg.png\",\"width\":240,\"height\":100,\"caption\":\"IOTIZE\"},\"image\":{\"@id\":\"https:\\\/\\\/support.iotize.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/company\\\/iotize\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UC7_vBk7g7je67jFcVsLA2xw\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/support.iotize.com\\\/#\\\/schema\\\/person\\\/868a30be4ef1b454ada5232ec26d2f58\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5d3f4e022858515d615d68e4596e93946d9525324c3168bf53c7c4491c42a9a0?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5d3f4e022858515d615d68e4596e93946d9525324c3168bf53c7c4491c42a9a0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5d3f4e022858515d615d68e4596e93946d9525324c3168bf53c7c4491c42a9a0?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/192.168.64.2\\\/WordPress\"],\"url\":\"https:\\\/\\\/support.iotize.com\\\/index.php\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WattTap - IoTize Support","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/","og_locale":"en_US","og_type":"article","og_title":"WattTap - IoTize Support","og_description":"This article presents a simple connected Wattmeter based on a TapNLink module. The only 'processor' is the Java Virtual Machine embedded into the TapNLink module that runs a simple Java program.","og_url":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/","og_site_name":"IoTize Support","article_published_time":"2021-01-27T15:00:09+00:00","article_modified_time":"2022-10-27T07:39:39+00:00","og_image":[{"width":2560,"height":1920,"url":"https:\/\/support.iotize.com\/wp-content\/uploads\/2021\/02\/picture_end-scaled.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/#article","isPartOf":{"@id":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/"},"author":{"name":"admin","@id":"https:\/\/support.iotize.com\/#\/schema\/person\/868a30be4ef1b454ada5232ec26d2f58"},"headline":"WattTap","datePublished":"2021-01-27T15:00:09+00:00","dateModified":"2022-10-27T07:39:39+00:00","mainEntityOfPage":{"@id":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/"},"wordCount":13,"commentCount":0,"publisher":{"@id":"https:\/\/support.iotize.com\/#organization"},"image":{"@id":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/#primaryimage"},"thumbnailUrl":"https:\/\/support.iotize.com\/wp-content\/uploads\/2021\/02\/picture_end-scaled.jpg","articleSection":["IoTized Demo with Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/","url":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/","name":"WattTap - IoTize Support","isPartOf":{"@id":"https:\/\/support.iotize.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/#primaryimage"},"image":{"@id":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/#primaryimage"},"thumbnailUrl":"https:\/\/support.iotize.com\/wp-content\/uploads\/2021\/02\/picture_end-scaled.jpg","datePublished":"2021-01-27T15:00:09+00:00","dateModified":"2022-10-27T07:39:39+00:00","breadcrumb":{"@id":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/#primaryimage","url":"https:\/\/support.iotize.com\/wp-content\/uploads\/2021\/02\/picture_end-scaled.jpg","contentUrl":"https:\/\/support.iotize.com\/wp-content\/uploads\/2021\/02\/picture_end-scaled.jpg","width":2560,"height":1920},{"@type":"BreadcrumbList","@id":"https:\/\/support.iotize.com\/index.php\/2021\/01\/27\/watttap\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/support.iotize.com\/"},{"@type":"ListItem","position":2,"name":"WattTap"}]},{"@type":"WebSite","@id":"https:\/\/support.iotize.com\/#website","url":"https:\/\/support.iotize.com\/","name":"IoTize Forum","description":"","publisher":{"@id":"https:\/\/support.iotize.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/support.iotize.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/support.iotize.com\/#organization","name":"IOTIZE","url":"https:\/\/support.iotize.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/support.iotize.com\/#\/schema\/logo\/image\/","url":"https:\/\/forum.iotize.com\/wp-content\/uploads\/2021\/01\/iotize-logo-lg.png","contentUrl":"https:\/\/forum.iotize.com\/wp-content\/uploads\/2021\/01\/iotize-logo-lg.png","width":240,"height":100,"caption":"IOTIZE"},"image":{"@id":"https:\/\/support.iotize.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/iotize","https:\/\/www.youtube.com\/channel\/UC7_vBk7g7je67jFcVsLA2xw"]},{"@type":"Person","@id":"https:\/\/support.iotize.com\/#\/schema\/person\/868a30be4ef1b454ada5232ec26d2f58","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5d3f4e022858515d615d68e4596e93946d9525324c3168bf53c7c4491c42a9a0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5d3f4e022858515d615d68e4596e93946d9525324c3168bf53c7c4491c42a9a0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5d3f4e022858515d615d68e4596e93946d9525324c3168bf53c7c4491c42a9a0?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/192.168.64.2\/WordPress"],"url":"https:\/\/support.iotize.com\/index.php\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/support.iotize.com\/index.php\/wp-json\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.iotize.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.iotize.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.iotize.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.iotize.com\/index.php\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":14,"href":"https:\/\/support.iotize.com\/index.php\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":297,"href":"https:\/\/support.iotize.com\/index.php\/wp-json\/wp\/v2\/posts\/1\/revisions\/297"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.iotize.com\/index.php\/wp-json\/wp\/v2\/media\/73"}],"wp:attachment":[{"href":"https:\/\/support.iotize.com\/index.php\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.iotize.com\/index.php\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.iotize.com\/index.php\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}