PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Sends data from an iOS phone to an Apple Watch (or conversely) while expecting a response.
Example
INTERNAL PROCEDURE GetInfo(b is Buffer)
Info(b)
END

MyBuffer is Buffer = "Text buffer"
IF NOT awSendAndGetInfo(MyBuffer, GetInfo) THEN
Error(ErrorInfo())
END
Syntax
<Result> = awSendAndGetInfo(<Data> , <Procedure Name>)
<Result>: Boolean
  • True if the sending was successful,
  • False otherwise. ErrorInfo returns more details about the error.
<Data>: Buffer
Data to send.
<Procedure Name>: Character string (with or without quotes)
Name of WLanguage procedure ("callback" procedure) that will be called when receiving the response. This procedure is used to retrieve and process the response.
This procedure has the following format:
PROCEDURE <Procedure Name>(<Response>)

where <Response> is a Buffer variable.
Remarks
  • The receiver receives the data sent via the procedure passed to awProcedureGetAndSendInfo. Then, the receiver must send a response in return value of this procedure.
  • The data is immediately sent.
    • From "Watch to Phone": if the iOS application is not started, it will be automatically started in background in order to respond to the call.
    • From "Phone to Watch": if the Apple Watch application is not started, an error is generated by the call.
  • The messages are delivered in the order in which they have been sent.
Minimum required version
  • Version 21
Comments
Click [Add] to post a comment