data_core:tcpprinter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
data_core:tcpprinter [2023/11/16 12:06] – su | data_core:tcpprinter [2024/05/24 14:39] (current) – [Verify TCP Port is in a listening state] su | ||
---|---|---|---|
Line 19: | Line 19: | ||
| | ||
3.1 TCP Settings > TCP Port: (e.g. " | 3.1 TCP Settings > TCP Port: (e.g. " | ||
+ | |||
3.2 Printer Settings > Message Delimiter: (e.g. "< | 3.2 Printer Settings > Message Delimiter: (e.g. "< | ||
+ | |||
3.3. Printer Settings > Trim Messages: (e.g. " | 3.3. Printer Settings > Trim Messages: (e.g. " | ||
| | ||
Line 116: | Line 118: | ||
$Socket = New-Object System.Net.Sockets.TCPClient($Address, | $Socket = New-Object System.Net.Sockets.TCPClient($Address, | ||
| | ||
- | # Setup stream | + | # Setup stream |
$Stream = $Socket.GetStream() | $Stream = $Socket.GetStream() | ||
$Writer = New-Object System.IO.StreamWriter($Stream) | $Writer = New-Object System.IO.StreamWriter($Stream) | ||
Line 133: | Line 135: | ||
# Get all files in dirctory | # Get all files in dirctory | ||
- | $dirPath = " | + | $dirPath = " |
$files = Get-ChildItem $dirPath | Where-Object { $_.PSIsContainer -eq $false } | $files = Get-ChildItem $dirPath | Where-Object { $_.PSIsContainer -eq $false } | ||
data_core/tcpprinter.txt · Last modified: 2024/05/24 14:39 by su