question

alex-switchsales avatar image
alex-switchsales asked

Using Network Service Discovery for the printer search not working

Hello, I use NSD to declare my printer IPP service, and the clover device does not see it, what could be the problem? Maybe I specify the service type incorrectly, here is my code:

private fun registerService(port: Int) {

val serviceInfo = NsdServiceInfo().apply {

serviceName = "NsdPrinterTest"

serviceType = "_pdl-datastream._tcp"

// serviceType = "_ipp._tcp"

// serviceType = "_pdl-datastream._tcp_printer._tcp_ipp._tcp."

setPort(port)

}

Print
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community