Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
TCP/IP Extension - Extensions - MIT App Inventor Community TCP/IP Extension Extensions Jean-Rodolphe_Letert April 16, 2020, 8:11am #1 Hello everybody, Last year, I needed a component in AI2 that did the work of a client socket. As there wasn’t any, I used Web component instead, but it didn’t do everything I need. A few days ago, I saw that there were the possibility to use extensions, but didn’t find a client socket one. I decided to make one so. Here it is : ClientSocket extension V0.4.4.2 (Trailling 00 bug repair and timeout set release) ! Properties : serverAddress (R/W) serverPort (R/W) timeoutms (R/W) hexaStringMode (R/W) connectionState (RO) debugMessages (RW) Methods : Connect Disconnect SendData Events : DataReceived RemoteConnectionClosed Known bugs : I think that only messages less than 1024 bytes work If connection to server is lost (not server shutdown, but wifi connection problem by example), no events will indicate it (but crashes are now fixed thx Axeley) on some android devices, disconnection of the serveur is not crashing anymore the app. If you want to send non ascii data, modify hexaStringMode to true and send data as “303132” to send characters “012”. Received data will be also hexa characters. Timeout to server connect is 2000 ms default but can be changed. If you want, you can use it, test it and report me suggestions and bugs. Cheers, Jean-Rodolphe Letertre Extension : com.gmail.at.moicjarod.aix (17.7 KB) Basic Project : TestSocket.aia (19.8 KB) 7 Likes TCP/IP in App inventor Communication with esp8266 server Taifun wifi send text command Ntrip Client Extension Jean-Rodolphe_Letert April 16, 2020, 8:24am #3 Java Source (to be reextensionned to .java … not allowed …) : ClientSocketAI2Ext.txt (17.8 KB) TIMAI2 April 16, 2020, 8:48am #4 Why did you remove the aix file ? Jean-Rodolphe_Letert April 16, 2020, 11:35am #5 Hello, aix file is in the first post (had to create a second post to put 3 files as I’m a new(?) user), isn’t it showed to you ? TIMAI2 April 16, 2020, 11:40am #6 Yes, but wasn’t when I posted droid_droid April 22, 2020, 4:42am #7 Hello, being a beginner I do not understand the usefulness of this block. What is it exactly for? Thanks for reading. Jean-Rodolphe_Letert April 24, 2020, 4:22pm #8 Hello, This extension is to be able to communication via the wifi network with a server at a low level state (well not so low, but just above Transport Layer …). You will then be able to send and receive information to any server by reimplementing the application layer needed. I developed this extension to be able to communicate with the Ethernet shield of an Arduino card. I set up an TCP/IP server on the Arduino and use my extension to build an application to be the client to connect to it. Cheers ! 2 Likes Jesus_Banda April 28, 2020, 4:51am #9 Hello, I’m a new user of App Inventor and I´m having some troubles with this app. When I run it, an error apears telling me that it cannot find the component: ClientSocketAI2Ext1. Could you please help me? JP_Le_Riche April 29, 2020, 9:18am #10 This extensions still hangs up the application when you disconnect, even if debugging is set to false. Please advise. 1 Like Yovan_Fowdar May 8, 2020, 1:53pm #11 Yes Indeed same issue here setting (ClientSocketAI2Ext1.DebugMessages to false ) has no effect , it hangs on disconnect . I would really appreciate if someone has found a fix for this issue. I am using Android version 9.1 1 Like Jean-Rodolphe_Letert May 8, 2020, 3:46pm #12 Ok, don’t have the problem on my phone. Will try it on my wife’s one (more recent) to be able to see the problem more precisely. No ETA (estimated time of achievement) though … :-S JP_Le_Riche June 4, 2020, 3:42pm #13 Hi JR, any update? I am willing to pay for the update, the extension works beautifully, apart for the disconnect. Jean-Rodolphe_Letert June 11, 2020, 7:48am #14 Ok, tried to send new version to JP Le Riche, but he did not reply to me. Here is the new version, somebody can try it ? com.gmail.at.moicjarod.aix (18.2 KB) (and why can’t I edit the first post ??) 2 Likes Zol June 17, 2020, 2:13pm #16 Hi! Is there a chance to fix the 1kB limit? Fabiano_Spada June 20, 2020, 5:02am #17 It worked perfectly well. thank you. Jean-Rodolphe_Letert June 25, 2020, 10:14am #18 Hello, It depends, if you need 2kB, it's easy to change, but if you need any size ... I have to make more research to know how to solve the problems involved ... 1 Like Zol June 26, 2020, 4:39pm #19 Hi! My premilinary guess is about 6-7kByte i need, but maybe i will split ti to smaller packages. i dunno yet. Or i send my data in definitions and let the server compose the full stream from it. JK_Seo June 27, 2020, 2:00am #20 Hi Jean, I also wants to know how I can extend the Byte size to 4K to 5K. Jean-Rodolphe_Letert June 29, 2020, 7:37am #21 Ok, guys ! New version with a limit of ~100k ! Test it and tell me if there is a problem ! ClientSocketAI2Ext.aix (18.2 KB) 1 Like geo0rpo July 3, 2020, 12:17pm #22 Hello! I am using the ClientSocketAI2Ext to connect to ESP8266 SoftAp in order to scan and connect to an SSID. When the ESP8266 actually connects to the selected SSID it momentarily turns OFF and back ON its Access Point and the app crashes. It should just raise an event but not crash. Any ideas? Thanks. next page → Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled