Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

serial comunication between Netduino & PC

SerialPort XBEE Netduino2 VB

  • Please log in to reply
1 reply to this topic

#1 ferdinan

ferdinan

    New Member

  • Members
  • Pip
  • 3 posts

Posted 08 September 2014 - 03:18 PM

Hi all, 
I'm trying to set up the communication between my Netduino 2 and some TMP36 sensors installed on a machine. 
I wanted to communicate with them through two XBEE modules. 
I found several examples of code in C # but I need it in VB. 
When I try to transcribe do not accept the definition of serialports. 
the declaration I use is: 
 
imports System.IO.Ports 
 
UART serialports = dim as New serialports ("COM1", 19200, Parity.Even, 8, StopBits.One) 
UART.Open () 
 
 
And the error I get is this: 
 
"Type 'SecretLabs.NETMF.Hardware.Netduino.SerialPorts' has no constructor." 
 
I hope you can help me because it is the last step in order to have a temperature control between the PC machine i.


#2 perpetualKid

perpetualKid

    Member

  • Members
  • PipPip
  • 20 posts

Posted 08 September 2014 - 04:39 PM

seems your compiler resolves to SecretLabs.NETMF.Hardware.Netduino.SerialPorts, whereas you want System.IO.Ports.SerialPort . Make sure in your new-statement it is SerialPort, not SerialPort*s*





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.