Search found 1534 matches

by badidea
Oct 15, 2019 22:18
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 117
Views: 3407

Re: TP-Link HS110

EDIT: Before I start on the GUI, the next step is the Multi-colour Light bulb. https://www.amazon.com/gp/product/B07FZ6PLJG/ref=ppx_od_dt_b_asin_title_s00?ie=UTF8&psc=1 Does it use the same protocol? And do you know the commands to send? I changed the getJsonValue() function to allow partial ke...
by badidea
Oct 15, 2019 15:15
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 117
Views: 3407

Re: TP-Link HS110

... For example If you would accept 1K of data you can set maxSize=1024 and the default chunk size of 8K are ignored in this case. ... This device sends a response typically in the range of ~10 to ~1000 bytes. If a lot of timers are set in the device, the 'get_sysinfo' reply can exceed a 1000 bytes...
by badidea
Oct 14, 2019 22:03
Forum: General
Topic: Squares
Replies: 7013
Views: 423539

Re: Squares

coderJeff wrote:OK, my last attempt, I think. It's time to bring this to a close.

It is a waste of your time. Some people prefer to be ignorant.
by badidea
Oct 13, 2019 21:31
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 117
Views: 3407

Re: TP-Link HS110

The US version has "longitude" and "latitude" That is annoying. The AU version has "next_action" which reports FAIL_IS_OBJECT The data is ,"next_action":{"type":-1}, Yes, my parser cannot handle nested objects at the moment. Have you completely upda...
by badidea
Oct 13, 2019 21:15
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 117
Views: 3407

Re: TP-Link HS110

device_name should be dev_name. Yes, post above updated. Also note that you still have the 4-byte garbage in your RxData "� " The AU model takes 2110 mSec.??? Sounds like the SNC issue again. Check with the python code. I will update the software in them, but have to make sure the link yo...
by badidea
Oct 13, 2019 20:43
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 117
Views: 3407

Re: TP-Link HS110

A couple of items don't appear to fill in I should make the routine case-insensitive I see. No some other issue. In your code: device_name --> dev_name longitude --> longitude_i latitude --> latitude_i Those are the exact variable names here as well. Each time I change Device number, I have to crea...
by badidea
Oct 13, 2019 20:33
Forum: Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 72
Views: 14240

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

I changed the constructor NetworkClient() to allow setting a timeout. Probably GNU/linux only. Better error handling to be done still. ' connection_maker(port) constructor NetworkClient(address as string, byval port as ushort, timeout as integer) base() if port = SNC_SOCK_ERROR then LastError = ERRO...
by badidea
Oct 13, 2019 17:47
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 52
Views: 8237

Re: Audio library for FreeBasic - Features

And why make additional inclusions in the form of "# Include"? Why can not you make direct use of sound commands like in gfxlib? I can think of 2 reasons (but I could be wrong): - To prevent breaking someone's code (if a have a different e.g. soundSet() in a project this gives a conflict)...
by badidea
Oct 13, 2019 17:27
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 117
Views: 3407

Re: TP-Link HS110

badidea, that's a good find. Note that this is the HS100, without the energy measurement (I think). I was already thinking about changing some of them for my own purpose and put a SSR in there. I have a lot of experience with them. The Omron relay should be fine as long as one does not start switch...
by badidea
Oct 13, 2019 16:31
Forum: Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 72
Views: 14240

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

I have added a 'noWait' parameter to the GetData() function. This reduces the reply time by nearly 2 second for replies that are less then 8kB. E.g. for communication with this device: TP-Link HS110 . declare function GetData(byref pData as any ptr, byval maxSize as integer = 0,...
by badidea
Oct 13, 2019 15:49
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 117
Views: 3407

Re: TP-Link HS110

I nearly bought another AU unit from Amazon Australia, but the model was an EU, is that what you have ? On the back: Model: HS110(EU) Ver: 3.1 Also with a connector used in most of Europe (red & blue on this map: https://en.wikipedia.org/wiki/Schuko#/media/File:Map_of_current_European_mains_ele...
by badidea
Oct 13, 2019 12:36
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 117
Views: 3407

Re: TP-Link HS110

When you look at the software version and build you will see that the US version is much older. Amazon's OLD stock ??? How does the RxData string look like? The parsing seems to go wrong. Also, on Amazon I see several product reviews with burned devices. TP-link might have improved the hardware in ...
by badidea
Oct 12, 2019 23:58
Forum: Tips and Tricks
Topic: Draw string with alignment
Replies: 0
Views: 198

Draw string with alignment

I needed a way to align an axis text label to a graph, so I wrote this odd piece of code. printxy is like draw string but with an alignment parameter. Also taking into account the font size (8x8, 8x14, 8x16). 'this UDT is not really essential, code can be rewritten without it type int2d as integer x...
by badidea
Oct 11, 2019 23:33
Forum: Tips and Tricks
Topic: MD4
Replies: 9
Views: 1908

Re: MD4

If any one wants to create a NT (of NTLM) hash, the code above (change uinteger to ulong for 64-bit) with this function can be used: 'Get NT or NTLM hash in upper case function NThash(UTF8str as string) as string dim as integer length = len(UTF8str) 'if length > 14 then length = 14 dim as string UTF...
by badidea
Oct 11, 2019 21:05
Forum: Beginners
Topic: Controlling the window size of a compiled program?
Replies: 15
Views: 597

Re: Controlling the window size of a compiled program?

Hi, so the window is too small and the too fonts? What system are you using now windows or linux? And what is the output are you using: * Console / terminal (screen 0)? * Graphics window (screen / screenres command)? * A GUI toolkit (FLTK / GTK / Windows API)? For 'Console / terminal' it is a system...

Go to advanced search