Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eurigo authored Jul 22, 2021
1 parent 74d48c0 commit 0c3a7a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ allprojects {
+ 在app模块下的`build.gradle`文件中加入
```
dependencies {
implementation 'com.github.eurigo:UDPUtils:1.0.3'
implementation 'com.github.eurigo:UDPUtils:1.0.4'
}
```

Expand All @@ -44,6 +44,12 @@ UDPUtils.getInstance().setPort(9090);
// 设置数据接收方的IP,255为广播形式发送
UDPUtils.getInstance().setHost(192.168.0.255);
// 不指定接收方IP,直接发送全局广播
UDPUtils.getInstance().sendBroadcastMessage(String s)
// 不指定接收方IP,直接发送全局广播
UDPUtils.getInstance().sendBroadcastMessage(Map map)
// 发送文本
UDPUtils.getInstance().sendMessage(String s)
Expand Down

0 comments on commit 0c3a7a8

Please sign in to comment.