2023-01-05 03:15 AM
Is it possible to create 2 or more types in a custom trigger? i tried it with a komma, but i doesn't work.
Solved! Go to Solution.
2023-01-06 01:57 AM
Hello @Roman REITER,
Yes, that is possible.
Select <custom> as your Action type and rename whatever you want (in my example I named it ThreeThings):
In the Includes tab, create a struct and insert your variables, with different types if you want, like this :
Then, you can link an interaction with your Custom Trigger, e.g. :
I attach my TouchGFX project example to this post, so you can look at it in details if you want.
/Yoann
2023-01-06 01:57 AM
Hello @Roman REITER,
Yes, that is possible.
Select <custom> as your Action type and rename whatever you want (in my example I named it ThreeThings):
In the Includes tab, create a struct and insert your variables, with different types if you want, like this :
Then, you can link an interaction with your Custom Trigger, e.g. :
I attach my TouchGFX project example to this post, so you can look at it in details if you want.
/Yoann
2023-01-10 07:34 AM
Thanks, but I knew that. would have thought of something like this: <custom>, <custom>
2023-01-11 05:24 AM
Hello,
I'm not sure to fully understand, why doing that when you can just pass a struct with as much parameters as you want ?
/Yoann
2023-01-23 03:34 AM
mostly an array with size is passed to functions (2 parameters-char * array, uint8_t size). i just wanted to do it the way it is done (as shown in books). However thank you for your help.