🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #150

Re: how to send ascii null to serial port

#150
From: Owen Green
Date: Sat, 29 May 2004 16:14
15 lines
1117 bytes
On Wed, 26 May 2004 14:47:25 +1000, asystems wrote:

> Hi,
> char nullchar 0x00;                // assign ascii <null>

Depends how many bits you want to send, I would imagine, but 

byte nullchar = 0; 
char nullchar = 0; 

should do the trick? 

hth
-- 
Owen
Technical Details
Message-ID: <law7wobk8h43$.dlg@borkborkbork.bork>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <40b4218a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,3bfc81ee0723da46
X-Google-Attributes: gid1089d0,public
From: Owen Green <o.t.green@ntlworld.com>
Subject: Re: how to send ascii null to serial port
Newsgroups: borland.public.jbuilder.java.api
User-Agent: 40tude_Dialog/2.0.10.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <40b4218a@newsgroups.borland.com>
Date: Sat, 29 May 2004 17:14:52 +0100
Message-ID: <law7wobk8h43$.dlg@borkborkbork.bork>
NNTP-Posting-Host: 80.1.205.234
X-Trace: newsgroups.borland.com 1085847478 80.1.205.234 (29 May 2004 09:17:58 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail