enable mDNS in SEP2.0

enable mDNS in SEP2.0

使用的是avahi,首先请自行安装avahi软件包

然后添加SEP.service到/etc/avahi/service目录下,最后重新启动avahi. avahi-deamon restart

sep.service的代码如下:

<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
  <name>device-000001111114</name>
  <service>
    <type>_smartenergy._tcp</type>
    <subtype>_edev-2222228._sub._smartenergy._tcp</subtype>
    <port>8000</port>
    <txt-record>txtvers=1</txt-record>
    <txt-record>dcap=/dcap</txt-record>
    <txt-record>path=/upt</txt-record>
    <txt-record>https=443</txt-record>
    <txt-record>level=-S0</txt-record>
  </service>
</service-group>

发表评论

电子邮件地址不会被公开。 必填项已用*标注