Skip to content
/ BACnet4J Public
forked from mlohbihler/BACnet4J
  • Notifications You must be signed in to change notification settings
  • Fork 107
  • Star 177
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump to bottom

ErrorAPDU(errorClass=object, errorCode=unknown-object,errorClass=object, errorCode=unknown-object) #61

Closed
yaoguaijiao opened this issue May 12, 2021 · 2 comments
Closed

ErrorAPDU(errorClass=object, errorCode=unknown-object,errorClass=object, errorCode=unknown-object) #61

yaoguaijiao opened this issue May 12, 2021 · 2 comments

Comments

@yaoguaijiao
Copy link

yaoguaijiao commented May 12, 2021

The title is my wrong message

Here's my source code:

    IpNetwork ipNetwork = new IpNetworkBuilder()
            .withLocalBindAddress("192.168.120.93")//本机的ip
            .withSubnet("255.255.255.0", 24)
            .withPort(47808) //Yabe默认的UDP端口
            .withReuseAddress(true)
            .build();
    LocalDevice localDevice = new LocalDevice(1, new DefaultTransport(ipNetwork));
    localDevice.initialize();

    localDevice.sendGlobalBroadcast(new WhoIsRequest());
    Thread.sleep(1000);
    RemoteDevice remoteDeviceBlocking = localDevice.getRemoteDeviceBlocking(123);

    System.out.println("modelName=" + remoteDeviceBlocking.getDeviceProperty(PropertyIdentifier.modelName));
    ObjectIdentifier objectIdentifier = new ObjectIdentifier(ObjectType.analogInput, 123);
    Encodable encodable = RequestUtils.readProperty(localDevice, remoteDeviceBlocking, objectIdentifier, PropertyIdentifier.presentValue, null);
    System.out.println(encodable.toString());

The real problem is the beginning of this line:
Encodable encodable = RequestUtils.readProperty(localDevice, remoteDeviceBlocking, objectIdentifier, PropertyIdentifier.presentValue, null);

This is my misinformation
image

@kishorevenki
Copy link

kishorevenki commented Aug 11, 2021

The error message indicates that remoteDeviceBlocking does not have object (AI,123).

@terrypacker terrypacker closed this as completed Nov 30, 2021
@domeyyds
Copy link

domeyyds commented Mar 30, 2023

我也出现了同样的问题,你解决了吗?是否是localDevice.terminate();的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@terrypacker @kishorevenki @yaoguaijiao @domeyyds

Footer

© 2024 GitHub, Inc.

两个鬼故事潘氏女孩起名大全赤之沙尘涮羊肉饭店起名联通大王卡19元套餐介绍好象征意义的起名成语非我倾城独宠太子妃全文免费阅读徐姓起名vista旗舰版梓用来起名称用刘皓二个字起名散酒坊起名起名字叫什么瑶笔记本触摸板驱动新闻频道直播67岁产下女婴湛蓝徽章建筑建筑劳务有限公司起名大全英国变异新冠再突变cocoasoft在家可做的生意通讯行业注册公司起名字超级包裹琴字起名起名字看诗经还是楚辞高丽王朝火锅加盟女孩姓朱的起名怎么起起一个通信的公司名店铺起名字网免费带鸟字的诗句科技公司起名广州少年生前被连续抽血16次?多部门介入两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”淀粉肠小王子日销售额涨超10倍高中生被打伤下体休学 邯郸通报单亲妈妈陷入热恋 14岁儿子报警何赛飞追着代拍打雅江山火三名扑火人员牺牲系谣言张家界的山上“长”满了韩国人?男孩8年未见母亲被告知被遗忘中国拥有亿元资产的家庭达13.3万户19岁小伙救下5人后溺亡 多方发声315晚会后胖东来又人满为患了张立群任西安交通大学校长“重生之我在北大当嫡校长”男子被猫抓伤后确诊“猫抓病”测试车高速逃费 小米:已补缴周杰伦一审败诉网易网友洛杉矶偶遇贾玲今日春分倪萍分享减重40斤方法七年后宇文玥被薅头发捞上岸许家印被限制高消费萧美琴窜访捷克 外交部回应联合利华开始重组专访95后高颜值猪保姆胖东来员工每周单休无小长假男子被流浪猫绊倒 投喂者赔24万小米汽车超级工厂正式揭幕黑马情侣提车了西双版纳热带植物园回应蜉蝣大爆发当地回应沈阳致3死车祸车主疑毒驾恒大被罚41.75亿到底怎么缴妈妈回应孩子在校撞护栏坠楼外国人感慨凌晨的中国很安全杨倩无缘巴黎奥运校方回应护栏损坏小学生课间坠楼房客欠租失踪 房东直发愁专家建议不必谈骨泥色变王树国卸任西安交大校长 师生送别手机成瘾是影响睡眠质量重要因素国产伟哥去年销售近13亿阿根廷将发行1万与2万面值的纸币兔狲“狲大娘”因病死亡遭遇山火的松茸之乡“开封王婆”爆火:促成四五十对奥巴马现身唐宁街 黑色着装引猜测考生莫言也上北大硕士复试名单了德国打算提及普京时仅用姓名天水麻辣烫把捣辣椒大爷累坏了

两个鬼故事 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化