Windows API

4 years 7 months ago #29531693 by lietang
Windows API was created by lietang
Hello, I am trying to figure out how your windows API sends a command to start a script. I wrote my own serial functions, before I found your API, and they work well for my purpose but I didn't build in any error handling, which is less than ideal. Your API has nice error handling and appears to be written efficiently, so I trust it.

However, I can't find the macro for _R in your header "Constants.h". It appears that that command (_R) and _CG are the only ones normally supported by SetCommand that are not in the API (api-windows-vs2012-090114). Currently I just send those exact characters over serial and the MC behaves as expected for all types of commands. Any ideas? I'm guessing either $12 or $25 corresponds to _R and was just not defined, but I don't want to send those to my MC in case they are something "bad".
Attachments:

Please Log in or Create an account to join the conversation.

4 years 7 months ago #29531694 by lietang
Replied by lietang on topic Windows API
Answer: I decided just to try 12, and see what happened. 12 is MicroBasic RUN _R. 1 run 0 stop, probably just like p. 171 of user manual. Still unsure about 25. Unnecessary for me so I am not asking anybody to answer what 25 is; it's probably the Send Raw Can frame, which is the only remaining SetCommand.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.162 seconds