Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string.h>
- void setup() {
- // put your setup code here, to run once:
- Serial.begin(9600);
- }
- void test1(char * ids){
- char * pch = strtok(ids,",");
- while(pch != NULL) {
- Serial.println(pch);
- pch = strtok(NULL,",");
- }
- Serial.println("---");
- delay(2000);
- }
- void loop() {
- char * ids = "9,5,0,1,8,6";
- test1(ids);
- char * ids1 = "9,5,0,1,8,6";
- test1(ids1);
- char * ids2 = "9,5,0,1,8,6";
- test1(ids2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement