关于TCP Server Event [Tasker Plugin]
这个程序将通过使用意图引发塔斯克应用程序的事件。
For android Oreo and Pei,please use "TCP Server Event [Oreo+]"
Hmmm.... Autoremote work great but sometime it doesnot work. This app will make your devices communicate in Local area network.
This app will send an Intent to the Broadcast Receiver whenever a message is receive in the its TCP server port. This can trigger tasks in Tasker app.
Note:
1) Use "Intent Received" event in tasker. Set Action as "Intent.unbi.tcpserver.TCP_MSG"
2) "%tcpmsg" will content the message variable
3) Set static ip to work properly for your device in your network.
4)You can use app like Send/Expect to send message to the TCP server from tasker app of another device
5) Force stop the app once and restart again if you change its port.
*added more variable by using "=:=" like other Tasker plugins.
*%tcppar=words on left side of "=:="
*%tcppar1,%tcppar2,%tcppar3,%tcppar4.........
*%tcpcomm1 ,%tcpcomm2 ,%tcpcomm3 .%tcpcomm4........ for words on right side of "=:="
(see https://github.com/ProjectUNBI/TCPserver_TASKER_plugin/blob/master/app/src/main/java/com/unbi/tcpserver/TCPservice.java line no. 219)
6) Now you can send TCP msg using Tasker Intent service
3 mode:
1)Intent.unbi.tcpSend.TCP_MSG
2)Intent.unbi.tcpSend.AUTOREM
3)Intent.unbi.tcpSend.TCP_ID_MSG
putExtra in tasker send Intent like this
"address:192.168.1.251:80"
"message:Here is your msg" and
"msgid:YourMsgId"
checkout BootCompletedIntentReceiver.java and Sendmessage.java in source code in
github if you dont understand
Source code: https://github.com/ProjectUNBI/TCPserver_TASKER_plugin
最新版本1.3的更新日志
Three mode available:
1)Intent.unbi.tcpSend.TCP_MSG
2)Intent.unbi.tcpSend.AUTOREM{for compatible with Window's eventghost Autoremote plugin}
3)Intent.unbi.tcpSend.TCP_ID_MSG
https://youtu.be/VuhpFzhL59A for checking how to set up in Tasker for this new feature.
(see: Sendmessage.java and BootCompletedIntentReceiver.java in sources code)
![TCP Server Event [Tasker Plugin] 截图 1](https://image.winudf.com/p/aHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tLzlTTmtJbkFiWUZiLWhCa2FhdWhBdXo2RGZSOE4xSUdCZkNHcU1lbUFpZkw3WWlOX0NsUGw5eUlNdTlyaXdfcFZ4eEk9aDE4MA?k=acf2cf58c0e0690c5f2dd1ae53f1a3b069184140&.jpg)
![TCP Server Event [Tasker Plugin] 截图 2](https://image.winudf.com/p/aHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tLzRtVjM3aVZidnRVTFR0b1JnczN6c2JPRXAxeXFFb0xtd29yYXhkUGdyakExT1ZvaVV4ZW81cFZNZjRyM0V5bmMxRW89aDE4MA?k=8dc5a712a082e76da16dca2f432b8f8a69184140&.jpg)
![TCP Server Event [Tasker Plugin] 截图 3](https://image.winudf.com/p/aHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL1pJM1k0bFVIdEVaSjVfczM5NTVmWkVkc3htRVpjTTc2cUVZWXJuTHNhSndPd2NEQjlUNkRUU3lpd1BCUFVwejNORE5VPWgxODA?k=ff47c13fad96b2c84db82595921a1ed869184140&.jpg)
![TCP Server Event [Tasker Plugin] 截图 4](https://image.winudf.com/p/aHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tLzVyYXdVM3FpOERPejR0SlZvZm11a2pFd25XbmxJT3Z0UkI2WVUtWnNpS1htWGoxbWg5cjFoNUpzek9pcjlWVm5MbHlzPWgxODA?k=8dcf0bb6c766205d9a705506695d01c569184140&.jpg)
![TCP Server Event [Tasker Plugin] 截图 5](https://image.winudf.com/p/aHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL21ZbmFIRXZBU3J5ZkJlVzZxdkQ4VUZrZVFOcnVjeUhNNHdBREFvTTg1NDBUY0RKV0NiX2ZJVXdoOTl4NTV0UjFYVUE9aDE4MA?k=701a28d81fd36c379cd28117c5e28e8269184140&.jpg)
![TCP Server Event [Tasker Plugin] 截图 6](https://image.winudf.com/p/aHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL05nODhJUjc3dW9fODZEdUtiZUV3blNqcDNyWUs3blJhWFc3b3l1blF5a0FfMjBTbHB1YTZKeFNxLTFCMHBEXzZydz1oMTgw?k=68a92d77b6d59d4e8155fe4d928bc4dc69184140&.jpg)
![TCP Server Event [Tasker Plugin] 截图 7](https://image.winudf.com/p/aHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL1RCR01iVFBvd2NmOUxLZlp6T0xPeFhQRDNjQkFfSjVDMzFrZnQwZkpHczJsLTFwNWR3ekFjU1lMUklkVC1RMEhld2t1PWgxODA?k=31863a0a11c57b898acc82eea9ddb93f69184140&.jpg)